summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-01-10 10:44:25 -0600
committerDan McGee <dan@archlinux.org>2011-01-21 19:30:45 -0600
commit5c46ba14f780474e2b04b54aa7b0c8bf60de2b5b (patch)
treec23d85821ee893c92e72e565454a9d4f2559a16e /src/util
parente068b58507ad58e2037aeb323a74d27377a0feac (diff)
downloadpacman-5c46ba14f780474e2b04b54aa7b0c8bf60de2b5b.tar.xz
Allow version comparison to contain epoch specifier
Adapting from RPM, follow the [epoch:]version[-release] syntax. We can also borrow some of their parsing code for our purposes (thanks!). Add some new tests to our vercmp shell script tester for epoch comparisons, and then make the code work with these newfangled epoch specifiers. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/vercmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/vercmp.c b/src/util/vercmp.c
index a1da23cd..adb5a42a 100644
--- a/src/util/vercmp.c
+++ b/src/util/vercmp.c
@@ -24,8 +24,8 @@
#define BASENAME "vercmp"
-/* forward declaration, comes from vercmp.o in libalpm source that is linked in
- * directly so we don't have any library deps */
+/* forward declaration, comes from version.o in libalpm source that is linked
+ * in directly so we don't have any library deps */
int alpm_pkg_vercmp(const char *a, const char *b);
static void usage(void)