Create the outputtree kernels holder after copying the kernels

This commit is contained in:
Martin Gracik 2010-11-23 14:19:32 +01:00
parent 6dcc1b8666
commit c8b1f5f5ea

View File

@ -28,7 +28,7 @@ import shutil
import glob import glob
import subprocess import subprocess
from base import BaseLoraxClass from base import BaseLoraxClass, DataHolder
from sysutils import * from sysutils import *
@ -65,6 +65,8 @@ class LoraxOutputTree(BaseLoraxClass):
self.efibootdir = efibootdir self.efibootdir = efibootdir
def get_kernels(self): def get_kernels(self):
self.kernels = []
for n, kernel in enumerate(self.installtree.kernels): for n, kernel in enumerate(self.installtree.kernels):
suffix = "" suffix = ""
if kernel.type == K_PAE: if kernel.type == K_PAE:
@ -88,8 +90,10 @@ class LoraxOutputTree(BaseLoraxClass):
shutil.copy2(kernel.fpath, dst) shutil.copy2(kernel.fpath, dst)
# XXX change the fname and fpath to new values # XXX change the fname and fpath to new values
kernel.fname = kname self.kernels.append(DataHolder(fname=kname,
kernel.fpath = dst fpath=dst,
version=kernel.version,
type=kernel.type))
def get_isolinux(self): def get_isolinux(self):
isolinuxbin = joinpaths(self.installtree.root, isolinuxbin = joinpaths(self.installtree.root,