extras-buildsys/utils/pushscript ToStable.py,1.4,1.5
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Thu Aug 23 21:57:18 UTC 2007
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv6176
Modified Files:
ToStable.py
Log Message:
accept Python regular expressions in list of package %names here, too
Index: ToStable.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/ToStable.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ToStable.py 23 Aug 2007 13:12:40 -0000 1.4
+++ ToStable.py 23 Aug 2007 21:57:16 -0000 1.5
@@ -71,7 +71,14 @@
return pkgsets
-def main(cfg,dist,args):
+def isWantedName(name,regexplist):
+ for r in regexplist:
+ if re.compile('^'+r+'$').search(name):
+ return True
+ return False # reject by default
+
+
+def main(cfg,dist,regexplist):
srcdist = 'testing/%s' % dist
destdist = dist
@@ -87,7 +94,7 @@
for srcrpm in pkgsets.keys():
(n,v,r,e,a) = rpmUtils.miscutils.splitFilename(srcrpm)
name = n
- if name in args: # the src.rpm %names we want
+ if isWantedName(name,regexplist): # the src.rpm %names we want
print ' ', name
# Fill build report and changelog diff db.
More information about the fedora-extras-commits
mailing list