Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/version.c
diff options
context:
space:
mode:
authormorganamilo <morganamilo@archlinux.org>2020-01-26 07:01:42 +0000
committerAllan McRae <allan@archlinux.org>2020-01-28 10:46:27 +1000
commitd0c487d4dcc6fec6f4bd8e1cefa1de9ffbe0e460 (patch)
treea93e22ff2ae481767df86a651352c424f57cc850 /lib/libalpm/version.c
parent0a25548cd0910f66dea2dfab21f75a6d15366d64 (diff)
Docs docs docs
libalpm: move docs from .c files into alpm.h And fix/expand some along the way. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'lib/libalpm/version.c')
-rw-r--r--lib/libalpm/version.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/libalpm/version.c b/lib/libalpm/version.c
index 5ae3b341..ae220ff6 100644
--- a/lib/libalpm/version.c
+++ b/lib/libalpm/version.c
@@ -216,20 +216,6 @@ cleanup:
return ret;
}
-/** Compare two version strings and determine which one is 'newer'.
- * Returns a value comparable to the way strcmp works. Returns 1
- * if a is newer than b, 0 if a and b are the same version, or -1
- * if b is newer than a.
- *
- * Different epoch values for version strings will override any further
- * comparison. If no epoch is provided, 0 is assumed.
- *
- * Keep in mind that the pkgrel is only compared if it is available
- * on both versions handed to this function. For example, comparing
- * 1.5-1 and 1.5 will yield 0; comparing 1.5-1 and 1.5-2 will yield
- * -1 as expected. This is mainly for supporting versioned dependencies
- * that do not include the pkgrel.
- */
int SYMEXPORT alpm_pkg_vercmp(const char *a, const char *b)
{
char *full1, *full2;