Revert "version: consider pkg-rX and pkg to be the same version"

This reverts commit ee5ce7284a.
cute-signatures
William Pitcock 2017-06-23 06:59:13 +00:00
parent 640a79084a
commit 5d439c4739
1 changed files with 0 additions and 5 deletions

View File

@ -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 */