From: Marius Mauch Date: Mon, 29 Sep 2008 00:18:59 +0000 (-0000) Subject: allow the portage.sets. prefix to be omitted in 'class' options of set definitions X-Git-Tag: v2.2_rc12~53 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1;p=portage.git allow the portage.sets. prefix to be omitted in 'class' options of set definitions svn path=/main/trunk/; revision=11599 --- diff --git a/pym/portage/sets/__init__.py b/pym/portage/sets/__init__.py index d6b3b5e87..7ac6502b7 100644 --- a/pym/portage/sets/__init__.py +++ b/pym/portage/sets/__init__.py @@ -70,8 +70,11 @@ class SetConfig(SafeConfigParser): try: setclass = load_mod(classname) except (ImportError, AttributeError): - self.errors.append("Could not import '%s' for section '%s'" % (classname, sname)) - continue + try: + setclass = load_mod("portage.sets."+classname) + except (ImportError, AttributeError): + self.errors.append("Could not import '%s' for section '%s'" % (classname, sname)) + continue # prepare option dict for the current section optdict = {} for oname in self.options(sname):