diff --git a/pisi/actionsapi/kerneltools.py b/pisi/actionsapi/kerneltools.py index d892913c..05a397a1 100644 --- a/pisi/actionsapi/kerneltools.py +++ b/pisi/actionsapi/kerneltools.py @@ -56,8 +56,13 @@ def __getFlavour(): def __getModuleFlavour(): for fl in [_f for _f in __getAllSupportedFlavours() if "-" in _f]: - if fl.split("-")[1] == get.srcNAME().split("-")[1]: - return fl + try: + if fl.split("-")[1] == get.srcNAME().split("-")[1]: + return fl + except IndexError: + # the package is not a module, may be a userspace application + # needing the kernel sources/headers for only reference. + pass return "kernel" @@ -269,6 +274,9 @@ def installSource(): autotools.make("modules_prepare") shelltools.system("find . -path './.*' | xargs rm -rf") + # Create the symlink + pisitools.dosym("/%s" % destination, "/lib/modules/%s/source" % suffix) + def cleanModuleFiles(): """ Cleans module.* files generated by depmod """ # Remove modules.* files, they will be autogenerated during pakhandler.