extras-buildsys/utils/pushscript Utils.py,1.3,1.4
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Tue Oct 24 22:41:41 UTC 2006
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/utils/pushscript
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv24572
Modified Files:
Utils.py
Log Message:
"help" old createrepo here too
Index: Utils.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/Utils.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Utils.py 24 Oct 2006 20:28:19 -0000 1.3
+++ Utils.py 24 Oct 2006 22:41:38 -0000 1.4
@@ -136,11 +136,16 @@
excludearg = "-x \'*debuginfo*\'"
cmd = '%s -c %s -q %s %s %s' % (cfg.createrepo, cfg.cr_cachedir, compsarg, excludearg, repodir)
run_and_check(cmd)
+
if debuginfo:
# If there's a debug subdir, make that a repo, too.
dbg_repodir = os.path.join(repodir, 'debug')
if os.path.exists(dbg_repodir):
print 'Creating repository %s' % dbg_repodir
+ rpdata = os.path.join(dbg_repodir, 'repodata') # see above
+ debugprint('removing tree %s' % rpdata)
+ if os.path.exists(rpdata) and not DEBUG:
+ shutil.rmtree(rpdata)
cmd = '%s -c %s -q %s' % (cfg.createrepo, cfg.cr_cachedir, dbg_repodir)
run_and_check(cmd)
More information about the scm-commits
mailing list