public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] [PATCH] _solve_..slot_conflicts: handle forced reinstall (bug 632202)
@ 2017-09-29  8:15 Zac Medico
  2017-09-29 13:16 ` Brian Dolbec
  0 siblings, 1 reply; 3+ messages in thread
From: Zac Medico @ 2017-09-29  8:15 UTC (permalink / raw
  To: gentoo-portage-dev; +Cc: Zac Medico

Fix the slot conflict solver to use the _want_installed_pkg
method to identify installed packages that are intended to
be reinstalled for some reason (such as @preserved-rebuild).

X-Gentoo-bug: 632202
X-Gentoo-bug-url: https://bugs.gentoo.org/632202
---
 pym/_emerge/depgraph.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 3b81c5c76..b0149c4dc 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -1337,7 +1337,8 @@ class depgraph(object):
 					self._dynamic_config._parent_atoms.get(pkg, []))
 
 			for parent, atom in all_parent_atoms:
-				is_arg_parent = isinstance(parent, AtomArg)
+				is_arg_parent = (inst_pkg is not None and
+					not self._want_installed_pkg(inst_pkg))
 				is_non_conflict_parent = parent not in conflict_pkgs and \
 					parent not in indirect_conflict_pkgs
 
-- 
2.13.5



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] _solve_..slot_conflicts: handle forced reinstall (bug 632202)
  2017-09-29  8:15 [gentoo-portage-dev] [PATCH] _solve_..slot_conflicts: handle forced reinstall (bug 632202) Zac Medico
@ 2017-09-29 13:16 ` Brian Dolbec
  2017-09-29 17:32   ` Zac Medico
  0 siblings, 1 reply; 3+ messages in thread
From: Brian Dolbec @ 2017-09-29 13:16 UTC (permalink / raw
  To: gentoo-portage-dev

On Fri, 29 Sep 2017 01:15:59 -0700
Zac Medico <zmedico@gentoo.org> wrote:

> Fix the slot conflict solver to use the _want_installed_pkg
> method to identify installed packages that are intended to
> be reinstalled for some reason (such as @preserved-rebuild).
> 
> X-Gentoo-bug: 632202
> X-Gentoo-bug-url: https://bugs.gentoo.org/632202
> ---
>  pym/_emerge/depgraph.py | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
> index 3b81c5c76..b0149c4dc 100644
> --- a/pym/_emerge/depgraph.py
> +++ b/pym/_emerge/depgraph.py
> @@ -1337,7 +1337,8 @@ class depgraph(object):
>  					self._dynamic_config._parent_atoms.get(pkg,
> [])) 
>  			for parent, atom in all_parent_atoms:
> -				is_arg_parent = isinstance(parent,
> AtomArg)
> +				is_arg_parent = (inst_pkg is not
> None and
> +					not
> self._want_installed_pkg(inst_pkg)) is_non_conflict_parent = parent
> not in conflict_pkgs and \ parent not in indirect_conflict_pkgs
>  


looks good

-- 
Brian Dolbec <dolsen>



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-portage-dev] [PATCH] _solve_..slot_conflicts: handle forced reinstall (bug 632202)
  2017-09-29 13:16 ` Brian Dolbec
@ 2017-09-29 17:32   ` Zac Medico
  0 siblings, 0 replies; 3+ messages in thread
From: Zac Medico @ 2017-09-29 17:32 UTC (permalink / raw
  To: gentoo-portage-dev, Brian Dolbec


[-- Attachment #1.1: Type: text/plain, Size: 1273 bytes --]

On 09/29/2017 06:16 AM, Brian Dolbec wrote:
> On Fri, 29 Sep 2017 01:15:59 -0700
> Zac Medico <zmedico@gentoo.org> wrote:
> 
>> Fix the slot conflict solver to use the _want_installed_pkg
>> method to identify installed packages that are intended to
>> be reinstalled for some reason (such as @preserved-rebuild).
>>
>> X-Gentoo-bug: 632202
>> X-Gentoo-bug-url: https://bugs.gentoo.org/632202
>> ---
>>  pym/_emerge/depgraph.py | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
>> index 3b81c5c76..b0149c4dc 100644
>> --- a/pym/_emerge/depgraph.py
>> +++ b/pym/_emerge/depgraph.py
>> @@ -1337,7 +1337,8 @@ class depgraph(object):
>>  					self._dynamic_config._parent_atoms.get(pkg,
>> [])) 
>>  			for parent, atom in all_parent_atoms:
>> -				is_arg_parent = isinstance(parent,
>> AtomArg)
>> +				is_arg_parent = (inst_pkg is not
>> None and
>> +					not
>> self._want_installed_pkg(inst_pkg)) is_non_conflict_parent = parent
>> not in conflict_pkgs and \ parent not in indirect_conflict_pkgs
>>  
> 
> 
> looks good
> 

Thanks, merged:

https://gitweb.gentoo.org/proj/portage.git/commit/?id=d82bf7c0a2cfa9590849aa7fd3ea1257a7f45006
-- 
Thanks,
Zac


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 224 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-09-29 17:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-29  8:15 [gentoo-portage-dev] [PATCH] _solve_..slot_conflicts: handle forced reinstall (bug 632202) Zac Medico
2017-09-29 13:16 ` Brian Dolbec
2017-09-29 17:32   ` Zac Medico

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