From 38398df50c4fce5c9a8be22fc144a92749981a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Tue, 13 Oct 2009 12:59:09 +0000 Subject: [PATCH] If excludes is not empty of course --- pisi/actionsapi/kerneltools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index 9ce6a360..6dfd17ef 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -247,7 +247,8 @@ def installLibcHeaders(excludes=[]): shelltools.system("rm -rf %s/sound" % headers_dir) # Remove possible excludes given by actions.py - shelltools.system("rm -rf %s" % " ".join(["%s/%s" % (headers_dir, exc.strip("/")) for exc in excludes)) + if excludes: + shelltools.system("rm -rf %s" % " ".join(["%s/%s" % (headers_dir, exc.strip("/")) for exc in excludes)) shelltools.cd(oldwd)