Bug 7167

Summary: urpmq --auto-orphans: s/writing/reading /var/lib/rpm/installed-through-deps.list
Product: Mageia Reporter: Xin Wang <dram.wang>
Component: RPM PackagesAssignee: Thierry Vignaud <thierry.vignaud>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Normal CC: mageia, zen25000
Version: 2   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: urpmi-6.48.2-1.mga2 CVE:
Status comment:

Description Xin Wang 2012-08-25 01:22:50 CEST
Description of problem:


urpmq --auto-orphans does not list orphans, only with output:

writing /var/lib/rpm/installed-through-deps.list


Version-Release number of selected component (if applicable):


How reproducible:

run "urpmq --auto-orphans"

Steps to Reproduce:
1.
2.
3.
Comment 1 Sander Lepik 2012-08-25 10:00:19 CEST
I'm not sure if urpmq should provide that option at all. "urpme --auto-orphans" is the right one to use. Tho' indeed "urpmq --help" lists that option. Thierry, the whole "--help" of urpmq could use a review, it still shows "© 1999-2010 Mandriva." as well.

CC: (none) => sander.lepik
Hardware: i586 => All
Assignee: bugsquad => thierry.vignaud

Comment 2 Xin Wang 2012-08-25 10:19:36 CEST
(In reply to comment #1)
> I'm not sure if urpmq should provide that option at all. "urpme --auto-orphans"
> is the right one to use. Tho' indeed "urpmq --help" lists that option. Thierry,
> the whole "--help" of urpmq could use a review, it still shows "© 1999-2010
> Mandriva." as well.

"urpmq --auto-orphans" only lists orphan packages, and "urpme --auto-orphans" does the actual job to remove them, so I think this option is still useful for urpmq.
Comment 3 Barry Jackson 2012-08-25 10:37:46 CEST
Works for me in mga2 and Cauldron - maybe you have no orphans ?

CC: (none) => zen25000

Comment 4 Sander Lepik 2012-08-25 10:43:28 CEST
Hmm, indeed. I didn't test at first, but it lists my old kernel that got orphaned when i booted into new one. So there seems to be no bug. Only copyright is a bit wrong.
Comment 5 Xin Wang 2012-08-25 11:00:27 CEST
(In reply to comment #3)
> Works for me in mga2 and Cauldron - maybe you have no orphans ?

Oops, I forgot about this, sorry for the confusion.

Yes, it shows orphan packages correctly.

But message printed by urpmq "writing /var/lib/rpm/installed-through-deps.list" still cause a little confusion. It is a query action, and invoked by a non-root user, so it shall not and can not write to that file.
Manuel Hiebel 2012-08-25 13:26:43 CEST

Summary: urpmq --auto-orphans does not list orphans => urpmq --auto-orphans: s/writing/reading /var/lib/rpm/installed-through-deps.list
Severity: normal => minor

Comment 6 Thierry Vignaud 2012-08-27 01:06:40 CEST
It update the list (to filter dups and now-removed-pkgs).

This bug is workarounded in git for cauldron:
- we don't try to update this list when !root
- we don't try to update this list if it didn't changed

I won't backport these fixes to mga2 (not worthing it).

Status: NEW => REOPENED

Comment 7 Xin Wang 2012-08-27 01:22:08 CEST
Thank you for the explanation.
Comment 8 Thierry Vignaud 2012-08-27 02:50:10 CEST
Closing

Status: REOPENED => RESOLVED
Resolution: (none) => FIXED