extras-repoclosure rc-run.py,1.17,1.18

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Sep 29 21:02:15 UTC 2006


Author: mschwendt

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

Modified Files:
	rc-run.py 
Log Message:
TODO: make this configurable and see how to combine RepoSupport.py
and Config_*.py



Index: rc-run.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-run.py,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- rc-run.py	20 Sep 2006 12:57:24 -0000	1.17
+++ rc-run.py	29 Sep 2006 21:02:10 -0000	1.18
@@ -15,8 +15,8 @@
 sys.path.append('/srv/extras-push/work/extras-repoclosure')
 from RepoSupport import RepoSupport
 
-sys.path.append('/srv/extras-push/work/buildsys-utils')
-from ExtrasPushUtils import *
+sys.path.append('/srv/extras-push/work/buildsys-utils/pushscript')
+import Utils
 
 
 def makereport():
@@ -32,19 +32,20 @@
             rcargs += ('-r %s ' % repoid)
         # -n, --newest : yum-utils 0.5
         # -d : modified version only
-        fix_mdcache_access(workdir,cachedir)
+        Utils.fix_mdcache_access(workdir,cachedir)
         rc = os.system('rc-modified -q -d %s -n -c %s %s >> %s' % (cachedir,conffile,rcargs,logfilename))
-        fix_mdcache_access(workdir,cachedir)
+        Utils.fix_mdcache_access(workdir,cachedir)
         if rc:
             return False
     return True
 
 # Main.
 
-signer_gid_check()
+cfg = Utils.load_config_module('Extras')
+Utils.signer_gid_check(cfg.signersgid)
 cwd = os.getcwd()
 os.chdir(workdir)
-os.umask(signersumask)  # only for our /srv environment
+os.umask(cfg.signersumask)  # only for our /srv environment
 
 # Delete old log files.
 import glob




More information about the scm-commits mailing list