summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2015-08-31 07:08:36 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-09-04 17:42:26 +0200
commit243136c02999fb87dda04d2da9461253bd1fb782 (patch)
treee6e550b85a3e5ae390753cba9b98bb045406dc00
parentaeaeb4fa9ec8e920d93d3f8748b6ecccfbd5551f (diff)
downloadurpmi-243136c02999fb87dda04d2da9461253bd1fb782.tar
urpmi-243136c02999fb87dda04d2da9461253bd1fb782.tar.gz
urpmi-243136c02999fb87dda04d2da9461253bd1fb782.tar.bz2
urpmi-243136c02999fb87dda04d2da9461253bd1fb782.tar.xz
urpmi-243136c02999fb87dda04d2da9461253bd1fb782.zip
do not break orphan tracking when downgrading
thus fixing unmarking packages as potential orphans when downgrading (mga#16149)
-rw-r--r--NEWS2
-rwxr-xr-xurpmi4
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 85fcd573..d268b39b 100644
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,7 @@
- aria2 downloading:
o fix using a proxy without an auth user (mga#11265)
+- library:
+ o fix unmarking packages as potential orphans when downgrading (mga#16149)
Version 8.06 - 18 May 2015
diff --git a/urpmi b/urpmi
index 786b9e78..f1d088e9 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,