workdir is a local variable, not a class attribute

This commit is contained in:
Martin Gracik 2011-04-15 09:41:59 +02:00
parent 06ac5762af
commit 4c25044020

View File

@ -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