relocations should not return symlinks, they are added to delta.

This commit is contained in:
Faik Uygur
2007-02-06 11:26:18 +00:00
parent 813d794458
commit 254387f0c2
+3 -1
View File
@@ -124,6 +124,8 @@ def find_relocations(oldfiles, newfiles):
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