extras-buildsys/utils extras-repobuild.py,1.25,1.26

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Sun Sep 17 20:11:06 UTC 2006


Author: mschwendt

Update of /cvs/fedora/extras-buildsys/utils
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17982

Modified Files:
	extras-repobuild.py 
Log Message:
okay, perhaps we need to track such dependencies somewhere (broken createrepo, broken repoview, old yum Python modules, etc)


Index: extras-repobuild.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-repobuild.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- extras-repobuild.py	17 Sep 2006 19:44:33 -0000	1.25
+++ extras-repobuild.py	17 Sep 2006 20:11:04 -0000	1.26
@@ -29,10 +29,12 @@
     compspath = os.path.join(repodir, compsname)
 
 	# Why remove the repodata dir? Isn't that entirely createrepo's work?
-    #rpdata = os.path.join(repodir, 'repodata')
-    #debugprint('removing tree %s' % rpdata)
-    #if os.path.exists(rpdata) and not DEBUG:
-    #    shutil.rmtree(rpdata)
+	# (also further below for "debug")
+	# ? -> https://devel.linux.duke.edu/bugzilla/show_bug.cgi?id=595
+    rpdata = os.path.join(repodir, 'repodata')
+    debugprint('removing tree %s' % rpdata)
+    if os.path.exists(rpdata) and not DEBUG:
+        shutil.rmtree(rpdata)
     
     print 'Processing: %s' % repodir
         
@@ -46,10 +48,10 @@
     # if there's a debug subdir, make that a repo, too.
     dbg_repodir = os.path.join(repodir, 'debug')
     if os.path.exists(dbg_repodir):
-#        dbg_rpdata = os.path.join(dbg_repodir, 'repodata')
-#        debugprint('removing tree %s' % dbg_rpdata)
-#        if os.path.exists(dbg_rpdata) and not DEBUG:
-#            shutil.rmtree(dbg_rpdata)
+        dbg_rpdata = os.path.join(dbg_repodir, 'repodata')
+        debugprint('removing tree %s' % dbg_rpdata)
+        if os.path.exists(dbg_rpdata) and not DEBUG:
+            shutil.rmtree(dbg_rpdata)
         print 'creating metadata for debug packages'
         cmd = '/usr/bin/createrepo -c %s -q %s' % (cachedir, dbg_repodir)
         run_and_check(cmd)            




More information about the scm-commits mailing list