Summary: | app-portage/gentoolkit-0.2.3_pre3: eclean-dist does not clean enough | ||
---|---|---|---|
Product: | Portage Development | Reporter: | Martin von Gagern <Martin.vGagern> |
Component: | Tools | Assignee: | Portage Tools Team <tools-portage> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Add debug statements to eclean |
Description
Martin von Gagern
2007-01-24 13:10:28 UTC
Created attachment 108080 [details, diff]
Add debug statements to eclean
This patch adds debug statements to eclean. The easiest way to use it is to do the following (Assuming that you save attachment as /tmp/eclean.debug.patch):
cd <some temporary directory>
cp /usr/bin/eclean .
patch < /tmp/eclean.debug.patch
./eclean <Your normal eclean options> distfiles 2>eclean.out
sort -u eclean.out -o eclean.out
The output will contain a list of all distfiles that are being kept preceded by a reason. The reasons are:
Time - You used the -t option and the file meets the criteria
Size - You used the -s option and the file meets the criteria
Exclusion - The file is listed in /etc/eclean/distfiles.exclude
category/package - The file is owned by the indicated package
(In reply to comment #1) OK, I tried your patch, and found that for all my suspicions there was a valid reason why things should stay around that I hadn't thought of before. For the mentioned files that was enigmail and gecko-sdk using older mozilla sources. For many others it was exotic kernels and stuff like that. Sorry for the noise, and thank's for the patch! I guess I'll keep that around anyway, in might be useful for manual cleaning. I could even imagine an interactive feature combining for each source file the list of ebuilds that would use it, along with the eix output for each, to see what versions there are of that, which are installed, and so on. Just a thought, but I guess if there was such a thing I might use it. Maybe I really should get started learning python... |