diff options
author | William Pitcock <nenolod@dereferenced.org> | 2017-06-23 06:59:13 +0000 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2017-06-23 06:59:13 +0000 |
commit | 5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3 (patch) | |
tree | e5b8cfad0d41a33aa3903e5bc2ee5df5104131d3 /src | |
parent | 640a79084a420598b006290c9ffe1372d93da34e (diff) | |
download | apk-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.c | 5 |
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 */ |