[Uludag-commits] r12272 - trunk/pisi/pisi

svn-uludag at uludag.org.tr svn-uludag at uludag.org.tr
6 Şub 2007 Sal 13:26:18 EET


Author: faik
Date: Tue Feb  6 13:26:18 2007
New Revision: 12272

Modified:
   trunk/pisi/pisi/delta.py
Log:
relocations should not return symlinks, they are added to delta.



Modified: trunk/pisi/pisi/delta.py
=================================================================
--- trunk/pisi/pisi/delta.py	(original)
+++ trunk/pisi/pisi/delta.py	Tue Feb  6 13:26:18 2007
@@ -124,6 +124,8 @@
     relocations = []
     for hash in files_new.keys():
         if hash in files_old and files_new[hash][0].path != files_old[hash][0].path:
-            relocations.append((files_old[hash][0], files_new[hash][0]))
+            # symlinks are not relocated, they already come with the delta package
+            if not os.path.islink("/" + files_old[hash][0].path):
+                relocations.append((files_old[hash][0], files_new[hash][0]))
 
     return relocations


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi