diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index f4c30d7e..9ce6a360 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -220,7 +220,7 @@ def installHeaders(extra=[]): # Settle the correct build symlink to this headers pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix) -def installLibcHeaders(): +def installLibcHeaders(excludes=[]): headers_tmp = os.path.join(get.installDIR(), 'tmp-headers') headers_dir = os.path.join(get.installDIR(), 'usr/include') @@ -246,6 +246,9 @@ def installLibcHeaders(): # Remove sound/ directory which is installed by alsa-headers 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)) + shelltools.cd(oldwd) # FIXME: Do we really need to delete those directories below?