extras-buildsys/utils extras-repobuild.py,1.8,1.9

Ville Skytta (scop) fedora-extras-commits at redhat.com
Fri Nov 25 17:45:24 UTC 2005


Author: scop

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

Modified Files:
	extras-repobuild.py 
Log Message:
Process debug/ if it exists even if it has not been previously repoized.


Index: extras-repobuild.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-repobuild.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- extras-repobuild.py	25 Nov 2005 17:39:09 -0000	1.8
+++ extras-repobuild.py	25 Nov 2005 17:45:22 -0000	1.9
@@ -77,12 +77,13 @@
 
     # if there's a debug subdir, make that a repo, too.
     dbg_repodir = os.path.join(repodir, 'debug')
-    dbg_rpdata = os.path.join(dbg_repodir, 'repodata')
-    debugprint('removing tree %s' % dbg_rpdata)
 
-    if os.path.exists(dbg_rpdata):
-        if not 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)
+
         print 'processing debug packages'
     
         cmd = '/usr/bin/createrepo -c %s -q %s' % (cachedir, dbg_repodir)




More information about the fedora-extras-commits mailing list