On Wed, 2010-08-04 at 10:20 +0200, Kamil Páral wrote:
-# XXX we should have actual repoinfo data for these
-#bodhi_releases = [r['bodhi_release'] for r in repoinfo.repos()
-# if 'bodhi_release' in r]
-bodhi_releases = ['F11','F12','F13']
+bodhi_releases = repoinfo.getlist('DEFAULT', 'releases')
The DEFAULT section applies the listed keys to *every* section in the
file - so this works, but it doesn't really make sense.
- def _getlist(self, name, item):
+ def getlist(self, name, item):
_getlist() was intentionally 'private' - I wanted repoinfo data to be
fetched by accessor methods, rather than having people poke around the
file somewhat by hand.
diff --git a/repoinfo.conf b/repoinfo.conf
index 3241044..cb1817c 100644
--- a/repoinfo.conf
+++ b/repoinfo.conf
@@ -1,4 +1,5 @@
[DEFAULT]
+releases = F12, F13, F14
Rather than adding this, I'd prefer marking the repos which correspond
to active releases, and building the release list that way.
A patch will be along shortly.
-w