[Uludag-commits] r12273 - trunk/pisi/pisi
svn-uludag at uludag.org.tr
svn-uludag at uludag.org.tr
6 Şub 2007 Sal 13:27:59 EET
Author: faik
Date: Tue Feb 6 13:27:59 2007
New Revision: 12273
Modified:
trunk/pisi/pisi/delta.py
Log:
we will handle these soon...
Modified: trunk/pisi/pisi/delta.py
=================================================================
--- trunk/pisi/pisi/delta.py (original)
+++ trunk/pisi/pisi/delta.py Tue Feb 6 13:27:59 2007
@@ -99,13 +99,13 @@
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):
Uludag-commits mesaj listesiyle ilgili
daha fazla bilgi