Fix grp so that grp/use is not required anymore
authorEric Edgar <rocket@gentoo.org>
Tue, 19 Jul 2005 21:44:14 +0000 (21:44 +0000)
committerEric Edgar <rocket@gentoo.org>
Tue, 19 Jul 2005 21:44:14 +0000 (21:44 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@804 d1e1f19c-881f-0410-ab34-b69fee027534

ChangeLog
modules/grp_target.py

index bf3f231e4d6344dd900165c0b90a6c6b001ee869..683877c3f512215723f2e6dbca7a3180a45e42a5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.307 2005/07/12 21:48:32 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/ChangeLog,v 1.308 2005/07/19 21:44:14 rocket Exp $
+
+  19 Jul 2005; Eric Edgar <rocket@gentoo.org> modules/grp_target.py:
+  Fix grp so that grp/use is not required anymore
 
   12 Jul 2005; Chris Gianelloni <wolf31o2@gentoo.org>
   -livecd/cdtar/isolinux-2.11-cdtar.tar.bz2,
index 368479d15d4400be1e65d50704c6be4c3108e3b7..31240070b85552af87fa17d289182a836fce7e06 100644 (file)
@@ -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/grp_target.py,v 1.12 2005/07/07 19:57:17 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/grp_target.py,v 1.13 2005/07/19 21:44:14 rocket Exp $
 
 """
 The builder class for GRP (Gentoo Reference Platform) builds.
@@ -19,12 +19,13 @@ class grp_target(generic_stage_target):
                if not addlargs.has_key("grp"):
                        raise CatalystError,"Required value \"grp\" not specified in spec."
                
-               self.required_values.extend(["grp","grp/use"])
+               self.required_values.extend(["grp"])
                if type(addlargs["grp"])==types.StringType:
                        addlargs["grp"]=[addlargs["grp"]]
-
-               if type(addlargs["grp/use"])==types.StringType:
-                       addlargs["grp/use"]=[addlargs["grp/use"]]
+               
+               if addlargs.has_key("grp/use"):
+                   if type(addlargs["grp/use"])==types.StringType:
+                           addlargs["grp/use"]=[addlargs["grp/use"]]
                        
                for x in addlargs["grp"]:
                        self.required_values.append("grp/"+x+"/packages")
@@ -55,6 +56,8 @@ class grp_target(generic_stage_target):
            generic_stage_target.set_use(self)
            if self.settings.has_key("use"):
                self.settings["use"].append("bindist")
+           else:
+               self.settings["use"]=["bindist"]
 
        def set_mounts(self):
            self.mounts.append("/tmp/grp")