extras-buildsys/utils extras-push-new,1.37,1.38
Michael Schwendt (mschwendt)
fedora-extras-commits at redhat.com
Mon Jun 12 10:24:09 UTC 2006
Author: mschwendt
Update of /cvs/fedora/extras-buildsys/utils
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv32268
Modified Files:
extras-push-new
Log Message:
also remove empty package "name" directories again
Index: extras-push-new
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-new,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- extras-push-new 12 Jun 2006 10:03:40 -0000 1.37
+++ extras-push-new 12 Jun 2006 10:24:07 -0000 1.38
@@ -232,7 +232,15 @@
pkgreldirs = os.listdir(pkgroot)
debugprint( '%s release(s) for %s: %s' % (len(pkgreldirs),name,' '.join(pkgreldirs)) )
if len(pkgreldirs) < 2: # only one release or empty dir
- continue
+ # Clean up empty package name directories.
+ if not len(pkgreldirs):
+ try:
+ debugprint('Removing empty directory %s' % pkgroot)
+ if not DEBUG:
+ os.rmdir(pkgroot)
+ except:
+ pass
+ continue # with next name
# We assume this release to be the newest.
relroot = os.path.join(pkgroot,pkgreldirs[0])
# There can be only one src.rpm in this dir, since relroot
More information about the fedora-extras-commits
mailing list