extras-repoclosure rc-run.py,1.25,1.26

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Jun 15 14:00:24 UTC 2007


Author: mschwendt

Update of /cvs/fedora/extras-repoclosure
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25987

Modified Files:
	rc-run.py 
Log Message:
commit the F>=7 and updates-testing switches


Index: rc-run.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-run.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- rc-run.py	7 Mar 2007 11:57:50 -0000	1.25
+++ rc-run.py	15 Jun 2007 14:00:22 -0000	1.26
@@ -13,6 +13,8 @@
 workdir = '/srv/extras-push/work/extras-repoclosure'
 cachedir = '/srv/extras-push/work/extras-repoclosure/mdcache'
 
+withtesting = False
+
 sys.path.append('/srv/extras-push/work/buildsys-utils/pushscript')
 import Utils, RepoSupport
 
@@ -22,10 +24,13 @@
         os.remove(logfilename)
     except:
         pass
-    for arch in rs.ReleaseArchsDict()[release]:
+    for arch in ['i386']: #rs.ReleaseArchsDict()[release]:
         print '%s (%s)' % (release,arch)
         rcargs = ('-a %s ' % rs.targetarchs[arch])
-        for r in rs.ReleaseRepoList(release)+rs.ExtRepoList(release):
+        repolist = rs.ReleaseRepoList(release)+rs.ExtRepoList(release)
+        if withtesting: # ugly, but unimportant, currently
+            repolist += rs.testrepos[release]
+        for r in repolist:
             repoid = rs.RepoId(r,release,arch)
             rcargs += ('-r %s ' % repoid)
         # -n, --newest : yum-utils 0.5
@@ -69,13 +74,15 @@
     print 'ERROR: %s: %s' % (strerr,lockfilename)
     sys.exit(11)
 
+cfg.alldists.append('development') # hack
+cfg.alldists.append('7') # hack
 rs = RepoSupport.RepoSupport(cfg)
 releases = []
 combinedreport = False
 reportcmd = "./rc-report.py"
 
 try:
-    opts, args = getopt.getopt(sys.argv[1:], "", ["mail=","needsign="])
+    opts, args = getopt.getopt(sys.argv[1:], "", ["mail=","needsign=","testing"])
 except getopt.GetoptError:
     print 'SYNTAX: %s [--needsign=path] <release>' % sys.argv[0]
     sys.exit(errno.EINVAL)
@@ -85,9 +92,12 @@
             reportcmd += " --mail=owners"
         if a == "summary":
             reportcmd += " --mail=summary"
-    if o == "--needsign":
+    elif o == "--needsign":
         rs.AddRepo('fedora-extras-needsign','Fedora Extras Needsign',a)
         reportcmd += " --needsign"
+    elif o == "--testing":
+        withtesting = True
+        reportcmd += " --testing"
 
 if sys.argv[0].endswith('rc-run-all.py'): # process all releases
     combinedreport = True




More information about the fedora-extras-commits mailing list