From 254387f0c25df9115293fdb398c40e1cc353ea65 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 6 Feb 2007 11:26:18 +0000 Subject: [PATCH] relocations should not return symlinks, they are added to delta. --- pisi/delta.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pisi/delta.py b/pisi/delta.py index 37dc69db..b1a3df0c 100644 --- a/pisi/delta.py +++ b/pisi/delta.py @@ -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