workdir is a local variable, not a class attribute
This commit is contained in:
parent
06ac5762af
commit
4c25044020
@ -693,14 +693,12 @@ class SPARC(object):
|
|||||||
self.reqs = collections.defaultdict(str)
|
self.reqs = collections.defaultdict(str)
|
||||||
|
|
||||||
def backup_required(self, workdir):
|
def backup_required(self, workdir):
|
||||||
os.makedirs(joinpaths(self.workdir, "bfiles"))
|
os.makedirs(joinpaths(workdir, "bfiles"))
|
||||||
|
|
||||||
for fname in glob.glob(joinpaths(self.installtree.root, "boot",
|
for fname in glob.glob(joinpaths(self.installtree.root, "boot/*.b")):
|
||||||
"*.b")):
|
cpfile(fname, joinpaths(workdir, "bfiles"))
|
||||||
cpfile(fname, joinpaths(self.workdir, "bfiles"))
|
|
||||||
|
|
||||||
self.regs["bfiles"] = glob.glob(joinpaths(self.workdir, "bfiles",
|
self.regs["bfiles"] = glob.glob(joinpaths(workdir, "bfiles/*.b"))
|
||||||
"*.b"))
|
|
||||||
|
|
||||||
def create_initrd(self, libdir):
|
def create_initrd(self, libdir):
|
||||||
# create directories
|
# create directories
|
||||||
|
Loading…
Reference in New Issue
Block a user