|
|
@ -139,7 +139,9 @@ class KernelHelper:
|
|
|
|
"""Get files from "pathname" has "descr" in descriptions"""
|
|
|
|
"""Get files from "pathname" has "descr" in descriptions"""
|
|
|
|
filelist = map(lambda x:path.join(pathname,x),os.listdir(pathname))
|
|
|
|
filelist = map(lambda x:path.join(pathname,x),os.listdir(pathname))
|
|
|
|
ftype = typeFile(magic=MAGIC_COMPRESS|MAGIC_SYMLINK).getMType
|
|
|
|
ftype = typeFile(magic=MAGIC_COMPRESS|MAGIC_SYMLINK).getMType
|
|
|
|
filesWithType = map(lambda x:(x,ftype(x)), filelist)
|
|
|
|
filesWithType = map(lambda x:(x,ftype(x)),
|
|
|
|
|
|
|
|
filter(path.exists,
|
|
|
|
|
|
|
|
filelist))
|
|
|
|
return filter(lambda x:descr in x[1],filesWithType)
|
|
|
|
return filter(lambda x:descr in x[1],filesWithType)
|
|
|
|
|
|
|
|
|
|
|
|
def getInitrd(self,arch,shortname,chroot,kernel,suffix="",notsuffix=""):
|
|
|
|
def getInitrd(self,arch,shortname,chroot,kernel,suffix="",notsuffix=""):
|
|
|
|