--autounmask-write: use CONFIGROOT more
authorZac Medico <zmedico@gentoo.org>
Wed, 18 May 2011 02:15:58 +0000 (19:15 -0700)
committerZac Medico <zmedico@gentoo.org>
Wed, 18 May 2011 02:15:58 +0000 (19:15 -0700)
pym/_emerge/depgraph.py

index 15a5df816e4858efd63e585c87f5357218937524..e1557a1b5846839f4906fab5c6807d33030d94d5 100644 (file)
@@ -5818,7 +5818,9 @@ class depgraph(object):
 
                if write_to_file:
                        for root in roots:
-                               abs_user_config = os.path.join(root, USER_CONFIG_PATH)
+                               settings = self._frozen_config.roots[root].settings
+                               abs_user_config = os.path.join(
+                                       settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH)
 
                                if root in unstable_keyword_msg:
                                        write_changes(root, unstable_keyword_msg[root],