diff options
author | Marius Mauch <genone@gentoo.org> | 2008-09-29 00:18:59 +0000 |
---|---|---|
committer | Marius Mauch <genone@gentoo.org> | 2008-09-29 00:18:59 +0000 |
commit | d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1 (patch) | |
tree | f6007138825dc3dcdef9c4ecaa5d4c37c7bc732e /pym/portage | |
parent | 2ca7e5fbf77548de093a48c0f2146a3727007502 (diff) | |
download | portage-d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1.tar.gz portage-d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1.tar.bz2 portage-d7a2d84dd11b355b51fdd7e223b0c09d9d7bc0f1.zip |
allow the portage.sets. prefix to be omitted in 'class' options of set definitions
svn path=/main/trunk/; revision=11599
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/sets/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
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): |