public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-portage-dev] [PATCH 4/4] emerge: Let --autounmask=n override other options
  @ 2014-08-12  9:37 99% ` Alexander Berntsen
  0 siblings, 0 replies; 1+ results
From: Alexander Berntsen @ 2014-08-12  9:37 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Alexander Berntsen

From: Alexander Berntsen <alexander@plaimi.net>

Signed-off-by: Alexander Berntsen <bernalex@gentoo.org>
---
 pym/_emerge/depgraph.py | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index bfa63fa..37b3a54 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -418,7 +418,8 @@ class _dynamic_depgraph_config(object):
 		self._backtrack_infos = {}
 
 		self._buildpkgonly_deps_unsatisfied = False
-		self._autounmask = True
+		self._autounmask = \
+				depgraph._frozen_config.myopts.get("--autounmask") != 'n'
 		self._success_without_autounmask = False
 		self._traverse_ignored_deps = False
 		self._complete_mode = False
@@ -7333,8 +7334,11 @@ class depgraph(object):
 		"""
 
 		ask = "--ask" in self._frozen_config.myopts
-		autounmask_write = ask or \
-				self._frozen_config.myopts.get("--autounmask", "n") == True
+		autounmask = self._frozen_config.myopts.get("--autounmask", "y")
+		# Write if *either* --autounmask is explicitly *true*, *or* if
+		# ask is *true* and --autounmask is *not* explicitly *false*
+		autounmask_write = autounmask is True or \
+				(autounmask != 'n'and ask != False)
 		autounmask_unrestricted_atoms = \
 			self._frozen_config.myopts.get("--autounmask-unrestricted-atoms", "n") == True
 		quiet = "--quiet" in self._frozen_config.myopts
-- 
1.8.5.5



^ permalink raw reply related	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2014-08-12  9:37     [gentoo-portage-dev] [PATCH 0/4] Autounmask changes Alexander Berntsen
2014-08-12  9:37 99% ` [gentoo-portage-dev] [PATCH 4/4] emerge: Let --autounmask=n override other options Alexander Berntsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox