[PATCH 3/5] list_releases(): add pre-squeeze releases

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


---
 lib/debian/debian_support.py | 7 ++++++-
 tests/test_debian_support.py | 1 +
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/debian/debian_support.py b/lib/debian/debian_support.py
index b7cc7fd..86af127 100644
--- a/lib/debian/debian_support.py
+++ b/lib/debian/debian_support.py
@@ -414,7 +414,12 @@ class Release(PseudoEnum): pass
 
 def list_releases():
     releases = {}
-    rels = ("potato",
+    rels = ("buzz",
+            "rez",
+            "bo",
+            "hamm",
+            "slink",
+            "potato",
             "woody",
             "sarge",
             "etch",
diff --git a/tests/test_debian_support.py b/tests/test_debian_support.py
index 74f9c6a..0d28f67 100755
--- a/tests/test_debian_support.py
+++ b/tests/test_debian_support.py
@@ -176,6 +176,7 @@ class ReleaseTests(unittest.TestCase):
     """Tests for debian_support.Release"""
 
     def test_comparison(self):
+        self.assertTrue(intern_release('buzz') < intern_release('hamm'))
         self.assertTrue(intern_release('sarge') < intern_release('etch'))
         self.assertTrue(intern_release('lenny') < intern_release('squeeze'))
 
-- 
2.1.0




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