This adds a test for a bug I recently hit in apt where it would consider
"1.0-0 > 1.0". This has since been fixed in apt, but it'd be nice to
also have this test in python-debian to prevent its native Version
implementation from regressing in the future.

Cheers,

Jelmer
From e5dc611f54e40b67f2d8c17b4050f88a59bf9c68 Sun Apr 11 15:57:11 2010
From: Jelmer Vernooij <[email protected]>
Date: Sun, 11 Apr 2010 15:59:16 CEST
Subject: [PATCH 1/1] Ensure that a zero debian revision is considered the same as an absent debian revision.


---
 test_debian_support.py |    1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/test_debian_support.py b/tests/test_debian_support.py
index 51a2e3c..1a3e9e6 100755
--- a/tests/test_debian_support.py
+++ b/tests/test_debian_support.py
@@ -154,6 +154,7 @@
         self._test_comparison('1.0-0.1', '<', '1.1')
         self._test_comparison('1.0-0.1', '<', '1.0-1')
         self._test_comparison('1.0', '==', '1.0')
+        self._test_comparison('1.0', '==', '1.0-0')
         self._test_comparison('1.0-0.1', '==', '1.0-0.1')
         self._test_comparison('1:1.0-0.1', '==', '1:1.0-0.1')
         self._test_comparison('1:1.0', '==', '1:1.0')
-- 
bzr 2.2.0dev1, bzr-git 0.5.0, dulwich 0.5.1

Attachment: signature.asc
Description: This is a digitally signed message part

--
http://lists.alioth.debian.org/mailman/listinfo/pkg-python-debian-discuss

Reply via email to