display errors that occured during package set initalization
authorMarius Mauch <genone@gentoo.org>
Tue, 5 Feb 2008 19:02:24 +0000 (19:02 -0000)
committerMarius Mauch <genone@gentoo.org>
Tue, 5 Feb 2008 19:02:24 +0000 (19:02 -0000)
svn path=/main/trunk/; revision=9276

pym/_emerge/__init__.py

index 9e05ad1e43e30004c6ca512663e436cca531669f..31abe5154865b31753dbf249f4aa894efd2a6e16 100644 (file)
@@ -7054,6 +7054,10 @@ def emerge_main():
        if myaction in ("clean", "config", "depclean", "info", "prune", "unmerge", None):
                root_config = trees[settings["ROOT"]]["root_config"]
                setconfig = root_config.setconfig
+               # display errors that occured while loading the SetConfig instance
+               for e in setconfig.errors:
+                       print colorize("BAD", "Error during set creation: %s" % e)
+               
                sets = setconfig.getSets()
                # emerge relies on the existance of sets with names "world" and "system"
                required_sets = ("world", "system")