extras-buildsys/utils/pushscript MultiLib.py,1.4,1.5

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Thu Oct 19 21:44:03 UTC 2006


Author: mschwendt

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

Modified Files:
	MultiLib.py 
Log Message:
Ensure that debuginfo packages, which we want to copy, do exist
actually. :)



Index: MultiLib.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/pushscript/MultiLib.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- MultiLib.py	15 Oct 2006 12:34:25 -0000	1.4
+++ MultiLib.py	19 Oct 2006 21:44:00 -0000	1.5
@@ -280,9 +280,10 @@
     for f in my.needed['debug']:
         srcfile = os.path.join(cfg.treedir,dist,srcarch,'debug',f)
         destfile = os.path.join(cfg.treedir,dist,targetarch,'debug',f)
-        if not os.path.exists(destfile):  # silent extra-check
-            Utils.install_link_or_copy(srcfile,destfile)
-            changed = True
+        if os.path.exists(srcfile):
+            if not os.path.exists(destfile):  # silent extra-check
+                Utils.install_link_or_copy(srcfile,destfile)
+                changed = True
         
     return changed
 




More information about the scm-commits mailing list