bodhi/buildsys.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
New commits:
commit c45af62736061f16c4979a2cfd941641c362d6b5
Author: Luke Macken <lmacken(a)redhat.com>
Date: Fri Aug 13 19:06:40 2010 -0400
Update our DevBuildsys to allow us to edit updates in our local dev instance
diff --git a/bodhi/buildsys.py b/bodhi/buildsys.py
index 176e169..55244bd 100644
--- a/bodhi/buildsys.py
+++ b/bodhi/buildsys.py
@@ -163,12 +163,13 @@ class DevBuildsys(Buildsystem):
{'arches': 'i386 x86_64 ppc ppc64', 'id': 5,
'locked': True,
'name': 'dist-5E-epel', 'perm': None,
'perm_id': None}]
else:
+ release = build.split('.')[-1].replace('fc', 'f')
return [{'arches': 'i386 x86_64 ppc ppc64', 'id': 10,
'locked': True,
- 'name': 'dist-f8-updates-candidate', 'perm':
None, 'perm_id': None},
+ 'name': 'dist-%s-updates-candidate' % release,
'perm': None, 'perm_id': None},
{'arches': 'i386 x86_64 ppc ppc64', 'id': 5,
'locked': True,
- 'name': 'dist-f8', 'perm': None,
'perm_id': None},
+ 'name': 'dist-%s' % release, 'perm': None,
'perm_id': None},
{'arches': 'i386 x86_64 ppc ppc64', 'id': 5,
'locked': True,
- 'name': 'dist-f8-updates-testing', 'perm':
None, 'perm_id': None}]
+ 'name': 'dist-%s-updates-testing' % release,
'perm': None, 'perm_id': None}]
def listTagged(self, tag, *args, **kw):
return [self.getBuild(),]
Show replies by date