[PATCH 2/5] list_releases(): add post-lenny releases to date

Stefano Zacchiroli zack at upsilon.cc
Wed Oct 1 14:37:30 UTC 2014


Closes: #758027
---
 lib/debian/debian_support.py | 3 +++
 tests/test_debian_support.py | 1 +
 2 files changed, 4 insertions(+)

diff --git a/lib/debian/debian_support.py b/lib/debian/debian_support.py
index 470712f..b7cc7fd 100644
--- a/lib/debian/debian_support.py
+++ b/lib/debian/debian_support.py
@@ -419,6 +419,9 @@ def list_releases():
             "sarge",
             "etch",
             "lenny",
+            "squeeze",
+            "wheezy",
+            "jessie",
             "sid")
     for r in range(len(rels)):
         releases[rels[r]] = Release(rels[r], r)
diff --git a/tests/test_debian_support.py b/tests/test_debian_support.py
index e154588..74f9c6a 100755
--- a/tests/test_debian_support.py
+++ b/tests/test_debian_support.py
@@ -177,6 +177,7 @@ class ReleaseTests(unittest.TestCase):
 
     def test_comparison(self):
         self.assertTrue(intern_release('sarge') < intern_release('etch'))
+        self.assertTrue(intern_release('lenny') < intern_release('squeeze'))
 
 
 class HelperRoutineTests(unittest.TestCase):
-- 
2.1.0




More information about the pkg-python-debian-maint mailing list