From 5d439c4739a0c6e2624f7bfab0ebf3588b2f0ac3 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 23 Jun 2017 06:59:13 +0000 Subject: Revert "version: consider pkg-rX and pkg to be the same version" This reverts commit ee5ce7284aef8679fabcf728dd5bd5a17c965798. --- src/version.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') 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 */ -- cgit v1.2.3-70-g09d2