From dee6050c89698067234c57f9d7f7d134b237c175 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 6 Feb 2007 11:27:59 +0000 Subject: [PATCH] we will handle these soon... --- pisi/delta.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/delta.py b/pisi/delta.py index b1a3df0c..a4da1d81 100644 --- a/pisi/delta.py +++ b/pisi/delta.py @@ -99,13 +99,13 @@ def find_delta(oldfiles, newfiles): hashto_files = {} for file in newfiles.list: - hashto_files[file.hash] = file + files_new.setdefault(file.hash, []).append(file) files_new = set(map(lambda x:x.hash, newfiles.list)) files_old = set(map(lambda x:x.hash, oldfiles.list)) files_delta = files_new - files_old - return map(lambda x:hashto_files[x], files_delta) + return map(lambda x:hashto_files[x][0], files_delta) def find_relocations(oldfiles, newfiles):