From: Zac Medico Date: Tue, 17 May 2011 06:29:21 +0000 (-0700) Subject: --autounmask-write: only prompt when necessary X-Git-Tag: v2.2.0_alpha34~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=360050ed30e257d2e9c3a49f65b5a1c70a6f57cf;p=portage.git --autounmask-write: only prompt when necessary --- 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':