summaryrefslogtreecommitdiff
path: root/patchtracker/SourceArchive.py
diff options
context:
space:
mode:
Diffstat (limited to 'patchtracker/SourceArchive.py')
-rwxr-xr-xpatchtracker/SourceArchive.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/patchtracker/SourceArchive.py b/patchtracker/SourceArchive.py
index 832b315..099b506 100755
--- a/patchtracker/SourceArchive.py
+++ b/patchtracker/SourceArchive.py
@@ -144,6 +144,18 @@ class SourcePackageIndex:
def indices(self):
return sorted(self.pkgs.iterkeys())
+class ReleaseList:
+
+ def __init__(self, project):
+ self.project = project
+ # XXX this is hard coded for now...
+ self.relorder = {}
+ self.relorder["debian"] = ["etch", "lenny", "sid", "experimental"]
+
+ def __iter__(self):
+ for r in self.relorder[self.project]:
+ yield r
+
# basic module tests
if __name__ == "__main__":
import Conf