From: Eric Edgar Date: Thu, 8 Dec 2005 22:02:05 +0000 (+0000) Subject: Fix appending livecd use flag if no use flag is specified in livecd-stage1 spec file X-Git-Tag: CATALYST_2_0_6_916~544 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb8a44a441727eb0ab858f06b49f59ddc0ec6d4f;p=catalyst.git Fix appending livecd use flag if no use flag is specified in livecd-stage1 spec file git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@950 d1e1f19c-881f-0410-ab34-b69fee027534 --- diff --git a/ChangeLog b/ChangeLog index 87461fcc..f8baa476 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.437 2005/12/08 21:20:23 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.438 2005/12/08 22:02:05 rocket Exp $ + + 08 Dec 2005; Eric Edgar + modules/livecd_stage1_target.py: + Fix appending livecd use flag if no use flag is specified in livecd-stage1 + spec file 08 Dec 2005; Eric Edgar modules/generic_target.py: Add a default path to the environment in the chroot diff --git a/modules/livecd_stage1_target.py b/modules/livecd_stage1_target.py index 15757574..b45ded39 100644 --- a/modules/livecd_stage1_target.py +++ b/modules/livecd_stage1_target.py @@ -1,6 +1,6 @@ # Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.24 2005/12/05 18:13:12 rocket Exp $ +# $Header: /var/cvsroot/gentoo/src/catalyst/modules/livecd_stage1_target.py,v 1.25 2005/12/08 22:02:05 rocket Exp $ """ Builder class for LiveCD stage1. @@ -45,8 +45,11 @@ class livecd_stage1_target(generic_stage_target): self.settings["spec_prefix"]="livecd" def set_use(self): - generic_stage_target.set_use(self) - self.settings["use"].append("livecd") + generic_stage_target.set_use(self) + if self.settings.has_key("use"): + self.settings["use"].append("livecd") + else: + self.settings["use"]=["livecd"] def set_packages(self): generic_stage_target.set_packages(self)