# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
# $Id: $
+ 13 Aug 2007; Andrew Gaffney <agaffney@gentoo.org> catalyst,
+ modules/generic_stage_target.py, modules/netboot2_target.py:
+ fix typo in getopt call for --clear-autoresume. thanks to
+ Tais M. Hansen <tais.hansen@osd.dk> in bug #188339 for catching this
+
17 Apr 2007; Chris Gianelloni <wolf31o2@gentoo.org>
modules/netboot2_target.py, targets/netboot2/netboot2-copyfile.sh,
targets/support/netboot2-final.sh:
# parse out the command line arguments
try:
opts,args = getopt.getopt(sys.argv[1:], "aphvdc:C:f:FVs:", ["purge","help", "version", "debug",\
- "clear_autoresume", "config=", "cli=", "file=", "fetch", "verbose","snapshot="])
+ "clear-autoresume", "config=", "cli=", "file=", "fetch", "verbose","snapshot="])
except getopt.GetoptError:
usage()
myf=open(self.settings["chroot_path"]+"/etc/make.conf","w")
myf.write("# These settings were set by the catalyst build script that automatically\n# built this stage.\n")
myf.write("# Please consult /etc/make.conf.example for a more detailed example.\n")
- myf.write('CFLAGS="'+self.settings["CFLAGS"]+'"\n')
+ if self.settings.has_key("CFLAGS"):
+ myf.write('CFLAGS="'+self.settings["CFLAGS"]+'"\n')
if self.settings.has_key("CXXFLAGS"):
myf.write('CXXFLAGS="'+self.settings["CXXFLAGS"]+'"\n')
else:
for x in self.settings["netboot2/overlay"]:
if os.path.exists(x):
cmd("rsync -a "+x+"/ "+\
- self.settings["chroot_path"], "netboot2/overlay: "+x+" copy failed.",env=self.env)
+ self.settings["chroot_path"] + self.settings["merge_path"], "netboot2/overlay: "+x+" copy failed.",env=self.env)
touch(self.settings["autoresume_path"]+"setup_overlay")
def move_kernels(self):