Mageia Bugzilla – Attachment 6915 Details for
Bug 16149
urpmi --downgrade manipulates installed-through-deps list, breaking orphan tracking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
untested patch
16149.diff (text/plain), 646 bytes, created by
Thierry Vignaud
on 2015-08-07 15:27:10 CEST
(
hide
)
Description:
untested patch
Filename:
MIME Type:
Creator:
Thierry Vignaud
Created:
2015-08-07 15:27:10 CEST
Size:
646 bytes
patch
obsolete
>diff --git a/urpmi b/urpmi >index 786b9e7..f1d088e 100755 >--- a/urpmi >+++ b/urpmi >@@ -583,7 +583,9 @@ if (@to_install && $options{auto_orphans}) { > #- - this also takes care of removing packages from > #- installed-through-deps if the package was first installed as a > #- dep of another package, then removed and then explicitly installed >-urpm::orphans::mark_as_requested($urpm, $state, $test); >+if (!$urpm->{options}{downgrade}) { >+ urpm::orphans::mark_as_requested($urpm, $state, $test); >+} > > foreach my $pkg (@to_install) { > #- reflect change in flag usage, now requested is set whatever a package is selected or not,
diff --git a/urpmi b/urpmi index 786b9e7..f1d088e 100755 --- a/urpmi +++ b/urpmi @@ -583,7 +583,9 @@ if (@to_install && $options{auto_orphans}) { #- - this also takes care of removing packages from #- installed-through-deps if the package was first installed as a #- dep of another package, then removed and then explicitly installed -urpm::orphans::mark_as_requested($urpm, $state, $test); +if (!$urpm->{options}{downgrade}) { + urpm::orphans::mark_as_requested($urpm, $state, $test); +} foreach my $pkg (@to_install) { #- reflect change in flag usage, now requested is set whatever a package is selected or not,
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 16149
: 6915