summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2017-06-23 06:59:13 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-06-23 06:59:13 +0000
commit5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3 (patch)
treee5b8cfad0d41a33aa3903e5bc2ee5df5104131d3 /src
parent640a79084a420598b006290c9ffe1372d93da34e (diff)
downloadapk-tools-5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3.tar.gz
apk-tools-5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3.tar.bz2
apk-tools-5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3.tar.xz
apk-tools-5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3.zip
Revert "version: consider pkg-rX and pkg to be the same version"
This reverts commit ee5ce7284aef8679fabcf728dd5bd5a17c965798.
Diffstat (limited to 'src')
-rw-r--r--src/version.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/version.c b/src/version.c
index 9bd96cb..dacbc34 100644
--- a/src/version.c
+++ b/src/version.c
@@ -221,11 +221,6 @@ int apk_version_compare_blob_fuzzy(apk_blob_t a, apk_blob_t b, int fuzzy)
if (at == bt || fuzzy)
return APK_VERSION_EQUAL;
- /* if only difference is pkgrev, they are equal. */
- if ((at == TOKEN_REVISION_NO && bt == TOKEN_END) ||
- (at == TOKEN_END && bt == TOKEN_REVISION_NO))
- return APK_VERSION_EQUAL;
-
/* leading version components and their values are equal,
* now the non-terminating version is greater unless it's a suffix
* indicating pre-release */