thanks to Kay Schluehr.
This commit is contained in:
@@ -345,8 +345,8 @@ class Install(AtomicOperation):
|
|||||||
|
|
||||||
# remove left over files from the old package.
|
# remove left over files from the old package.
|
||||||
def clean_leftovers():
|
def clean_leftovers():
|
||||||
new = set(map(lambda x: str(x.path), self.files.list))
|
new = set(str(f.path) for f in self.files.list)
|
||||||
old = set(map(lambda x: str(x.path), self.old_files.list))
|
old = set(str(f.path) for f in self.old_files.list)
|
||||||
leftover = old - new
|
leftover = old - new
|
||||||
old_fileinfo = {}
|
old_fileinfo = {}
|
||||||
for fileinfo in self.old_files.list:
|
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)
|
old = filter(lambda x: x.type == 'config', self.old_files.list)
|
||||||
|
|
||||||
# get config path lists
|
# get config path lists
|
||||||
newconfig = set(map(lambda x: str(x.path), new))
|
newconfig = set(str(x.path) for x in new)
|
||||||
oldconfig = set(map(lambda x: str(x.path), old))
|
oldconfig = set(str(x.path) for x in old)
|
||||||
|
|
||||||
config_overlaps = newconfig & oldconfig
|
config_overlaps = newconfig & oldconfig
|
||||||
if config_overlaps:
|
if config_overlaps:
|
||||||
|
|||||||
Reference in New Issue
Block a user