Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 163576

Summary: app-portage/portage-utils: qmerge -U will never remove directories
Product: Portage Development Reporter: Natanael Copa <natanael.copa>
Component: ToolsAssignee: Portage Utils Team <portage-utils>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://sources.gentoo.org/viewcvs.py/gentoo-projects/portage-utils/qmerge.c?r1=1.57&r2=1.58
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: qmerge_unmerge_dirs.patch

Description Natanael Copa 2007-01-24 11:36:05 UTC
Directories will by design never be removed with qmerge -U. The reason is that the dirs are listed first and will practically always contain files.

The dirs should be removed after files and they should be removed in reverse order (so /path/to/directory are removed before /path/to and /path)
Comment 1 Natanael Copa 2007-01-24 11:44:34 UTC
Created attachment 108012 [details, diff]
qmerge_unmerge_dirs.patch

Removes dirs in reverse order after everything else.
Patch is against latest cvs.
Comment 2 solar (RETIRED) gentoo-dev 2007-01-24 18:59:20 UTC
Thanks again.

Renamed tmp to list and committed the patch (untested).
qmerge still needs lots of love and maybe a rewrite. If you want to 
take a stab at a rdep resolver function that would be greatly appreciated.