kumba fix
authorDaniel Robbins <drobbins@gentoo.org>
Tue, 17 Feb 2004 09:55:23 +0000 (09:55 +0000)
committerDaniel Robbins <drobbins@gentoo.org>
Tue, 17 Feb 2004 09:55:23 +0000 (09:55 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/catalyst/trunk@234 d1e1f19c-881f-0410-ab34-b69fee027534

modules/targets.py

index 1aedeeb2ddf3798b2646ad17c6f703145c6ef01c..4dfa2340ce54b1c914f8e3b2932d8464391672ee 100644 (file)
@@ -1,6 +1,6 @@
 # Distributed under the GNU General Public License version 2
 # Copyright 2003-2004 Gentoo Technologies, Inc.
-# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.87 2004/02/13 02:41:26 drobbins Exp $
+# $Header: /var/cvsroot/gentoo/src/catalyst/modules/Attic/targets.py,v 1.88 2004/02/17 09:55:23 drobbins Exp $
 
 import os,string,imp,types,shutil
 from catalyst_support import *
@@ -384,6 +384,8 @@ 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"])
+               if type(addlargs["grp"])==StringType:
+                       addlargs["grp"]=[addlargs["grp"]]
                for x in addlargs["grp"]:
                        self.required_values.append("grp/"+x+"/packages")
                        self.required_values.append("grp/"+x+"/type")