From 360050ed30e257d2e9c3a49f65b5a1c70a6f57cf Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 16 May 2011 23:29:21 -0700 Subject: [PATCH] --autounmask-write: only prompt when necessary --- pym/_emerge/depgraph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 9e97415be..3daaf441c 100644 --- a/pym/_emerge/depgraph.py +++ b/pym/_emerge/depgraph.py @@ -5776,7 +5776,7 @@ class depgraph(object): except PortageException: problems.append("!!! Failed to write '%s'\n" % file_to_write_to) - if write_to_file and ask: + if ask and write_to_file and file_to_write_to: prompt = "\nWould you like to add these " + \ "changes to your config files?" if userquery(prompt, enter_invalid) == 'No': -- 2.26.2