When you downgrade a set of packages with urpmi --downgrade, your purpose is to downgrade those packages, not to mark them as specifically requested non-orphan packages. Currently urpmi will treat this just as if you called urpmi normally on those packages, which is exactly the wrong thing to do in this case. urpmi should not manipulate the installed-through-deps list when called with the --downgrade option. Reproducible: Steps to Reproduce:
Whiteboard: (none) => MGA5TOO, MGA4TOO
Created attachment 6915 [details] untested patch
(In reply to Thierry Vignaud from comment #1) > Created attachment 6915 [details] > untested patch It's perfect! It looks correct, and I tested both cases, urpmi --downgrade on some packages I had updated to a local build of, which normally would have unmarked them as being auto-installed and it didn't do that, and I ran urpmi on a package that was auto-installed and it still unmarked it, as it should have. Nice job :D Thanks.
Fixed in my local git
Status: NEW => RESOLVEDResolution: (none) => FIXED
Hardware: i586 => All
commit 8116d24edf10c8f56355b7af592530a1a830b052 Author: Thierry Vignaud <thierry.vignaud@...> Date: Mon Aug 31 07:08:36 2015 -0400 do not break orphan tracking when downgrading thus fixing unmarking packages as potential orphans when downgrading (mga#16149) --- Commit Link: http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=8116d24edf10c8f56355b7af592530a1a830b052
Thanks. Is the fix committed in the stable branches?
Status: RESOLVED => REOPENEDVersion: Cauldron => 5Resolution: FIXED => (none)Whiteboard: MGA5TOO, MGA4TOO => MGA4TOO
commit 243136c02999fb87dda04d2da9461253bd1fb782 Author: Thierry Vignaud <thierry.vignaud@...> Date: Mon Aug 31 07:08:36 2015 -0400 do not break orphan tracking when downgrading thus fixing unmarking packages as potential orphans when downgrading (mga#16149) --- Commit Link: http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=243136c02999fb87dda04d2da9461253bd1fb782
No need to reopen bug for that...
Status: REOPENED => RESOLVEDResolution: (none) => FIXED