aboutsummaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2015-11-08 22:31:38 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2015-11-08 22:31:38 +0000
commit27173447c84657a9aafe57b1b9bfb5c7087b0f39 (patch)
tree76042c6fec34ce2bfc94086a513340d42ed7ce4a /python
parent53e89a76f67868ec520ac0b6da4ce1301376ae04 (diff)
downloadpaludis-27173447c84657a9aafe57b1b9bfb5c7087b0f39.tar.gz
paludis-27173447c84657a9aafe57b1b9bfb5c7087b0f39.tar.xz
Unify =* behaviour
Gentoo changed =* to mean almost the same thing as it does in Exherbo in bug 560466; the difference being that float-like components aren't treated specially, for example 1.0123 doesn't match a dep saying =1.012*. Since nothing in Exherbo relies on this anyway, just make it the same everywhere.
Diffstat (limited to 'python')
-rwxr-xr-xpython/version_operator_TEST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/version_operator_TEST.py b/python/version_operator_TEST.py
index ef1b4a114..96118d92e 100755
--- a/python/version_operator_TEST.py
+++ b/python/version_operator_TEST.py
@@ -36,7 +36,7 @@ class TestCase_VersionOperator(unittest.TestCase):
def test_04_compare(self):
self.assert_(VersionOperator("<").compare(VersionSpec("1.0"), VersionSpec("2.0")))
self.assert_(VersionOperator(">").compare(VersionSpec("3.0"), VersionSpec("2.0")))
- self.assert_(VersionOperator(VersionOperatorValue.STUPID_EQUAL_STAR).compare(VersionSpec("2.0.1-r1"), VersionSpec("2.0")))
+ self.assert_(VersionOperator(VersionOperatorValue.EQUAL_STAR).compare(VersionSpec("2.0.1-r1"), VersionSpec("2.0")))
if __name__ == "__main__":
unittest.main()