From c36d3ea4dec51781f0a1a3f45c3d2565e9ca2f95 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 8 Jun 2011 10:05:20 -0700 Subject: [PATCH] autounmask-write: support package.accept_keywords --- pym/_emerge/depgraph.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index b9a394e5d..39179a455 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5786,8 +5786,13 @@ class depgraph(object): settings["PORTAGE_CONFIGROOT"], USER_CONFIG_PATH) if root in unstable_keyword_msg: + if os.path.exists(os.path.join(abs_user_config, + "package.accept_keywords")): + filename = "package.accept_keywords" + else: + filename = "package.keywords" file_to_write_to[(abs_user_config, "package.keywords")] = \ - find_config_file(abs_user_config, "package.keywords") + find_config_file(abs_user_config, filename) if root in p_mask_change_msg: file_to_write_to[(abs_user_config, "package.unmask")] = \ -- 2.26.2