extras-repoclosure rc-run.py,1.9,1.10

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sat Jun 24 19:48:20 UTC 2006


Author: mschwendt

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

Modified Files:
	rc-run.py 
Log Message:
Don't need this anymore currently.
Found out that yum repomd code uses an explicit 0755 mode when
creating directories.



Index: rc-run.py
===================================================================
RCS file: /cvs/fedora/extras-repoclosure/rc-run.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- rc-run.py	24 Jun 2006 19:05:57 -0000	1.9
+++ rc-run.py	24 Jun 2006 19:48:17 -0000	1.10
@@ -9,7 +9,6 @@
 
 workdir = '/srv/rpmbuild/extras-repoclosure'
 cachedir = '/srv/rpmbuild/extras-repoclosure/mdcache'
-breakfile = 'rc-run.breakfile'
 
 allreleases = [ '3', '4', '5', 'development' ]
 
@@ -77,20 +76,6 @@
     return conffile
 
 
-def checkbreakfile():
-    # If the breakfile exists, we terminate prematurely, so another job
-    # can take over (= clumsy restart without killing metadata processing).
-    f = os.path.join(workdir,breakfile)
-    if not os.path.exists(f):
-        return
-    try:
-        os.remove(f)
-    except:
-        print 'ERROR: Removing breakfile %s failed!' % f
-        pass
-    sys.exit(1)
-
-
 def makereport():
     try:
         os.remove(logfilename)
@@ -105,7 +90,6 @@
         # -n, --newest : yum-utils 0.5
         # -d : modified version only
         rc = os.system('rc-modified -q -d %s -n -c %s %s >> %s' % (cachedir,conffile,rcargs,logfilename))
-        checkbreakfile()
         if rc:
             return False
     return True
@@ -114,10 +98,7 @@
 
 cwd = os.getcwd()
 os.chdir(workdir)
-os.umask(0002)  # only for our /srv environment
-fn = os.path.join(workdir,breakfile)
-f = open(fn,'w')
-f.close()
+#os.umask(0002)  # only for our /srv environment
 
 # Delete old log files.
 import glob




More information about the scm-commits mailing list