Change the location of *.b files on sparc

This commit is contained in:
Martin Gracik 2011-04-13 16:11:58 +02:00
parent 747c393599
commit 031e6bab10

View File

@ -693,7 +693,14 @@ class SPARC(object):
self.reqs = collections.defaultdict(str) self.reqs = collections.defaultdict(str)
def backup_required(self, workdir): def backup_required(self, workdir):
pass os.makedirs(joinpaths(self.workdir, "bfiles"))
for fname in glob.glob(joinpaths(self.installtree.root, "boot",
"*.b")):
cpfile(fname, joinpaths(self.workdir, "bfiles"))
self.regs["bfiles"] = glob.glob(joinpaths(self.workdir, "bfiles",
"*.b"))
def create_initrd(self, libdir): def create_initrd(self, libdir):
# create directories # create directories
@ -714,8 +721,7 @@ class SPARC(object):
replace(bootmsg, r"%VERSION%", self.version) replace(bootmsg, r"%VERSION%", self.version)
# copy *.b to sparc dir # copy *.b to sparc dir
for fname in glob.glob(joinpaths(self.installtree.root, ANABOOTDIR, for fname in self.regs["bfiles"]:
"*.b")):
cpfile(fname, joinpaths(self.outputroot, SPARCDIR)) cpfile(fname, joinpaths(self.outputroot, SPARCDIR))
# create images # create images