Handle packages which are not kernel modules, install symlink in the kernel-source package.

This commit is contained in:
Ozan Çağlayan
2009-07-21 07:27:39 +00:00
parent ee580eeb59
commit 4e57b34982
+10 -2
View File
@@ -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.