From a91fef464b219704ad7a9a4eb48bfe6511379a9a Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Thu, 9 Apr 2009 10:19:00 +0000 Subject: [PATCH] fix to get dict value not bool --- pisi/operations/build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations/build.py b/pisi/operations/build.py index 2d8530a5..b09c8423 100644 --- a/pisi/operations/build.py +++ b/pisi/operations/build.py @@ -91,7 +91,7 @@ def check_path_collision(package, pkgList): return collisions def exclude_special_files(filepath, fileinfo, install_dir, ag): - keeplist = [] if not ag.has_key('KeepSpecial') else ag.has_key('KeepSpecial') + keeplist = [] if not ag.has_key('KeepSpecial') else ag['KeepSpecial'] patterns = { "libtool":".*: libtool library file", "python":".*: python.*byte-compiled", @@ -117,7 +117,7 @@ def exclude_special_files(filepath, fileinfo, install_dir, ag): os.unlink(filepath) def strip_debug_action(filepath, fileinfo, install_dir, ag): - excludelist = [] if not ag.has_key('NoStrip') else ag.has_key('NoStrip') + excludelist = [] if not ag.has_key('NoStrip') else ag['NoStrip'] outputpath = pisi.util.join_path(os.path.dirname(install_dir), ctx.const.debug_dir_suffix, ctx.const.debug_files_suffix,