extras-buildsys/utils ExtrasPushUtils.py, 1.14, 1.15 extras-push-new, 1.63, 1.64

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Sep 29 11:17:46 UTC 2006


Author: mschwendt

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

Modified Files:
	ExtrasPushUtils.py extras-push-new 
Log Message:
- fix "debug" repo-build
- fix an Exception type



Index: ExtrasPushUtils.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/ExtrasPushUtils.py,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- ExtrasPushUtils.py	27 Sep 2006 13:10:13 -0000	1.14
+++ ExtrasPushUtils.py	29 Sep 2006 11:17:43 -0000	1.15
@@ -131,7 +131,10 @@
     compsarg = ''
     if os.path.exists( os.path.join(repodir,compsname) ):
         compsarg = '-g %s ' % compsname
-    cmd = '/usr/bin/createrepo -c %s -q %s -x \'*debuginfo*\' %s' % (cr_cachedir, compsarg, repodir)
+    excludearg = ''
+    if os.path.exists( os.path.join(repodir,'debug') ):
+        excludearg = "-x \'*debuginfo*\'"
+    cmd = '/usr/bin/createrepo -c %s -q %s %s %s' % (cr_cachedir, compsarg, excludearg, repodir)
     run_and_check(cmd)
 
 


Index: extras-push-new
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/extras-push-new,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -r1.63 -r1.64
--- extras-push-new	26 Sep 2006 17:32:40 -0000	1.63
+++ extras-push-new	29 Sep 2006 11:17:43 -0000	1.64
@@ -135,7 +135,7 @@
     d = os.listdir(repodir)
     try:
         d.remove('repodata')
-    except KeyError:
+    except ValueError:
         pass
     return d
 




More information about the scm-commits mailing list