extras-buildsys/utils ExtrasMultiLib.py,1.6,1.7

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Mon Sep 18 10:43:52 UTC 2006


Author: mschwendt

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

Modified Files:
	ExtrasMultiLib.py 
Log Message:
don't warn when destination files exist already - it's uninteresting here


Index: ExtrasMultiLib.py
===================================================================
RCS file: /cvs/fedora/extras-buildsys/utils/ExtrasMultiLib.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- ExtrasMultiLib.py	17 Sep 2006 23:45:05 -0000	1.6
+++ ExtrasMultiLib.py	18 Sep 2006 10:43:50 -0000	1.7
@@ -325,13 +325,13 @@
     for f in my.needed['rpms']+missingdict[targetarch]['rpms']:
         srcfile = os.path.join(treedir,dist,srcarch,f)
         destfile = os.path.join(treedir,dist,targetarch,f)
-        #print srcfile
-        install_link_or_copy(srcfile,destfile)
+        if not os.path.exists(destfile):  # silent extra-check
+            install_link_or_copy(srcfile,destfile)
     for f in my.needed['debug']:
         srcfile = os.path.join(treedir,dist,srcarch,'debug',f)
         destfile = os.path.join(treedir,dist,targetarch,'debug',f)
-        #print srcfile
-        install_link_or_copy(srcfile,destfile)
+        if not os.path.exists(destfile):  # silent extra-check
+            install_link_or_copy(srcfile,destfile)
         
     n = len(my.needed['rpms'])+len(my.needed['debug'])+len(missingdict[targetarch]['rpms'])
     return n>0




More information about the fedora-extras-commits mailing list