From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1QMDmx-0005o2-EC for garchives@archives.gentoo.org; Tue, 17 May 2011 06:29:52 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70A6C1C256; Tue, 17 May 2011 06:29:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 3CF8A1C256 for ; Tue, 17 May 2011 06:29:43 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BBE521B400A for ; Tue, 17 May 2011 06:29:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 2F2CE80504 for ; Tue, 17 May 2011 06:29:42 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <360050ed30e257d2e9c3a49f65b5a1c70a6f57cf.zmedico@gentoo> Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/depgraph.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: 360050ed30e257d2e9c3a49f65b5a1c70a6f57cf Date: Tue, 17 May 2011 06:29:42 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 5e8d84ffecc5e8734c0b2a1903834516 commit: 360050ed30e257d2e9c3a49f65b5a1c70a6f57cf Author: Zac Medico gentoo org> AuthorDate: Tue May 17 06:29:21 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Tue May 17 06:29:21 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3D360050ed --autounmask-write: only prompt when necessary --- pym/_emerge/depgraph.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 9e97415..3daaf44 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) =20 - if write_to_file and ask: + if ask and write_to_file and file_to_write_to: prompt =3D "\nWould you like to add these " + \ "changes to your config files?" if userquery(prompt, enter_invalid) =3D=3D 'No':