From 7c42caee7cb61badffae364ca1756df15b2abe97 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Wed, 20 Jun 2007 12:07:55 +0000 Subject: [PATCH] thanks to Kay Schluehr. --- pisi/atomicoperations.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index a5642e77..a68f87d9 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -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: