Haven't seen portage meltdowns lately, so we can revert my hack to keep
authorFabian Groffen <grobian@gentoo.org>
Tue, 26 Jun 2007 17:45:18 +0000 (17:45 -0000)
committerFabian Groffen <grobian@gentoo.org>
Tue, 26 Jun 2007 17:45:18 +0000 (17:45 -0000)
it going.

svn path=/main/branches/prefix/; revision=7038

pym/portage/__init__.py

index 253659f44bf7c406696ea579933c4ff4277c7be7..31dafff000966c17bddd826aea067b46bbf35e45 100644 (file)
@@ -820,8 +820,7 @@ def autouse(myvartree, use_cache=1, mysettings=None):
 
 def check_config_instance(test):
        if not isinstance(test, config):
-       #       raise TypeError("Invalid type for config object: %s (should be %s)" % (test.__class__, config))
-               print "WARNING: Invalid type for config object: %s (should be %s)" % (test.__class__, config)
+               raise TypeError("Invalid type for config object: %s (should be %s)" % (test.__class__, config))
 
 class config(object):
        """