Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 107257 - gentoolkit: eclean: provide current AND NEWER versions of packages
Summary: gentoolkit: eclean: provide current AND NEWER versions of packages
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-26 02:41 UTC by Eugene Pavlovsky
Modified: 2008-02-18 16:27 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Pavlovsky 2005-09-26 02:41:20 UTC
it'd be good if eclean had an option to protect currently installed and newer
versions of packages. this way you won't have not-yet-installed packages
deleted. currently, this can be done by protecting by file's age

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 TGL 2005-09-26 12:02:21 UTC
Yep, i like the idea, i will probably add that in next version.
Comment 2 Eugene Pavlovsky 2006-11-13 02:19:13 UTC
can you please tell me if it is implemented yet?
Comment 3 TGL 2006-11-13 13:12:11 UTC
(In reply to comment #2)
> can you please tell me if it is implemented yet?

Sorry, i've not yet found/took time to work on any "next version" :-/
Comment 4 Eugene Pavlovsky 2006-11-14 01:40:42 UTC
no problem
Comment 5 Mike Pagano gentoo-dev 2008-01-23 02:11:52 UTC
This appears to be implemented:

with nmap 4.50 (stable) installed I downloaded 4.52 and 4.53. So I have all three versions in distfiles. The execution of eclean below produced to candidates for deletion.

server1 bin # eclean -p distfiles
 * Building file list for distfiles cleaning...
 * Your distfiles directory was already clean.

mint bin # ll /usr/portage/distfiles/nmap*
-rw-rw-r-- 1 portage portage 2156077 2006-12-07 23:03 /usr/portage/distfiles/nmap-4.20.tar.bz2
-rw-rw-r-- 1 portage portage 3128562 2008-01-18 07:51 /usr/portage/distfiles/nmap-4.50.tar.bz2
-rw-rw-r-- 1 portage portage 3147364 2008-01-22 21:05 /usr/portage/distfiles/nmap-4.52.tar.bz2
-rw-rw-r-- 1 portage portage 3145948 2008-01-22 21:07 /usr/portage/distfiles/nmap-4.53.tar.bz2
mint bin #

Am I mistaken?
Comment 6 michael@smith-li.com 2008-02-17 20:41:43 UTC
(In reply to comment #5)
> This appears to be implemented:

Mike, I think you're referring to distfiles, whereas the O.P. seems to be about packages.

However, I did a test and I'm pretty sure it is implemented in the case of currently installed packages.

I'll test higher-version-than-installed packages and get back.
Comment 7 michael@smith-li.com 2008-02-17 21:47:33 UTC
The following appears to prove that this enhancement has been put into effect.

(test) black ~ # qlist -IvC baselayout
sys-apps/baselayout-1.12.10-r5
(test) black ~ # echo /usr/portage/packages/All/baselayout-1.12.1*
/usr/portage/packages/All/baselayout-1.12.10-r5.tbz2 /usr/portage/packages/All/baselayout-1.12.11.1.tbz2
(test) black ~ # eclean -p packages | grep baselayout
(test) black ~ #

I think this bug can be closed.
Comment 8 Paul Varner (RETIRED) gentoo-dev 2008-02-18 16:27:05 UTC
This appears to be working now. Please reopen if that is not the case.