[Commits] python.it commit r177 - admin/trunk/scripts

commit a svn.python.it commit a svn.python.it
Ven 2 Giu 2006 12:53:53 CEST


Author: manlio
Date: Fri Jun  2 12:53:52 2006
New Revision: 177

Modified:
   admin/trunk/scripts/update-version.py
Log:
corretto bug per gestione copia da repository esterno

Modified: admin/trunk/scripts/update-version.py
==============================================================================
--- admin/trunk/scripts/update-version.py	(original)
+++ admin/trunk/scripts/update-version.py	Fri Jun  2 12:53:52 2006
@@ -119,8 +119,13 @@
     
     if not dry_run:
         src = join(tagsPath, new, path)
-        if os.system("svn copy %s %s" % (src, path)) != 0:
+        # take care of source files from a different repository
+        # (svn:externals)
+        if os.system("cp %s %s" % (src, path)) != 0:
             raise RuntimeError("unable to copy the file")
+
+        if os.system("svn add %s" % path) != 0:
+            raise RuntimeError("unable to add the file")
         
     try:
         setModeFromFileName(path)


Maggiori informazioni sulla lista Commits