Contents of /branches/mage-next/src/package.h
Parent Directory | Revision Log
Revision 2807 -
(show annotations)
(download)
Wed Sep 3 11:53:06 2014 UTC (10 years ago) by niro
File MIME type: text/plain
File size: 1078 byte(s)
Wed Sep 3 11:53:06 2014 UTC (10 years ago) by niro
File MIME type: text/plain
File size: 1078 byte(s)
-moved some common package functions to package.c/package.h
1 | /* |
2 | * Copyright (c) 2006-2011 Pacman Development Team <pacman-dev@archlinux.org> |
3 | * |
4 | * This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. |
8 | * |
9 | * This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU General Public License |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | #ifndef _GNU_SOURCE |
19 | #define _GNU_SOURCE |
20 | #endif |
21 | |
22 | #ifndef MAGESUFFIX |
23 | #define MAGESUFFIX "mage" |
24 | #endif |
25 | |
26 | static void parseEVR(char *evr, const char **ep, const char **vp, const char **rp); |
27 | static int rpmvercmp(const char *a, const char *b); |
28 | int alpm_pkg_vercmp(const char *a, const char *b); |
29 | int check_stable_package(char *magefile); |