thanks to Kay Schluehr.

This commit is contained in:
Faik Uygur
2007-06-20 12:07:55 +00:00
parent ed18bd64b7
commit 7c42caee7c
+4 -4
View File
@@ -345,8 +345,8 @@ class Install(AtomicOperation):
# remove left over files from the old package.
def clean_leftovers():
new = set(map(lambda x: str(x.path), self.files.list))
old = set(map(lambda x: str(x.path), self.old_files.list))
new = set(str(f.path) for f in self.files.list)
old = set(str(f.path) for f in self.old_files.list)
leftover = old - new
old_fileinfo = {}
for fileinfo in self.old_files.list:
@@ -360,8 +360,8 @@ class Install(AtomicOperation):
old = filter(lambda x: x.type == 'config', self.old_files.list)
# get config path lists
newconfig = set(map(lambda x: str(x.path), new))
oldconfig = set(map(lambda x: str(x.path), old))
newconfig = set(str(x.path) for x in new)
oldconfig = set(str(x.path) for x in old)
config_overlaps = newconfig & oldconfig
if config_overlaps: