From 625945a6dcd09e7d3c72e1672c2f0328d296da4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ozan=20=C3=87a=C4=9Flayan?= Date: Thu, 9 Apr 2009 13:56:39 +0000 Subject: [PATCH] Fixus --- pisi/actionsapi/kerneltools.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index b8fa7847..bcba8b37 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -196,14 +196,15 @@ def installSource(): shelltools.cd(os.path.join(get.installDIR(), destination)) autotools.make("clean") autotools.make("modules_prepare") - shelltools.system("find . -path './.*' -exec rm -f '{}' \;") + shelltools.system("find . -path './.*' -exec rm -rf '{}' \;") def cleanModuleFiles(): """ Cleans module.* files generated by depmod """ # Remove modules.* files, they will be autogenerated during pakhandler. # Don't remove modules.order generated by kbuild for ordering the modules # according to the link order. - shelltools.system("find . -name 'modules.*' -not -name 'modules.order' -exec rm -f '{}' \;") + shelltools.system("find %s/lib/modules/%s -name 'modules.*' \ + -not -name 'modules.order' -exec rm -f '{}' \;" % (get.installDIR(), __getSuffix())) def mkinitramfs(): """ Create and install the initramfs image into the package. This will hopefully be done on user's system. """