use SetConfig.getSetAtoms instead of PackageSet.getAtoms for expanding sets to allow...
authorMarius Mauch <genone@gentoo.org>
Fri, 26 Oct 2007 01:03:24 +0000 (01:03 -0000)
committerMarius Mauch <genone@gentoo.org>
Fri, 26 Oct 2007 01:03:24 +0000 (01:03 -0000)
svn path=/main/trunk/; revision=8302

pym/_emerge/__init__.py
pym/portage/sets/__init__.py

index 2aaf5fb332b225381cf9a337ea4943750e09b87c..785e2f74620a12126b41d5bc74b9b6dc1cc61e1b 100644 (file)
@@ -6503,16 +6503,17 @@ def emerge_main():
                        else:
                                newargs.append(a)
                myfiles = newargs
+               del newargs
                for s in settings.sets:
                        if SETPREFIX+s in myfiles:
                                # TODO: check if the current setname also resolves to a package name
                                if myaction in ["unmerge", "prune", "clean", "depclean"] and not packagesets[s].supportsOperation("unmerge"):
                                        print "emerge: the given set %s does not support unmerge operations" % s
                                        return 1
-                               if not settings.sets[s].getAtoms():
+                               if not settings.setconfig.getSetAtoms(s):
                                        print "emerge: '%s' is an empty set" % s
                                else:
-                                       myfiles.extend(settings.sets[s].getAtoms())
+                                       myfiles.extend(settings.setconfig.getSetAtoms(s))
                                        mysets[s] = settings.sets[s]
                                for e in settings.sets[s].errors:
                                        print e
index 4d5ce25b512cad1596c90bb807505202fc0dde58..1d39d10ee0246879c2a340257909592bdc84807b 100644 (file)
@@ -63,7 +63,7 @@ class SetConfig(SafeConfigParser):
                                try:
                                        setname = self.get(sname, "name")
                                except NoOptionError:
-                                       setname = "sets/"+sname
+                                       setname = sname
                                if hasattr(setclass, "singleBuilder"):
                                        try:
                                                self.psets[setname] = setclass.singleBuilder(optdict, self.settings, self.trees)