Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163404 - eclean-dist exception sugested
Summary: eclean-dist exception sugested
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-23 07:34 UTC by Thiago Nunes
Modified: 2007-01-24 17:09 UTC (History)
1 user (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 Thiago Nunes 2007-01-23 07:34:31 UTC
I use emerge-delta-webrsync, which leaves a copy of last portage's snapshot in $DISTDIR.

But when I run eclean distfiles he wants to remove this copy. Like in:

# eclean -p distfiles
 * Here are distfiles that would be deleted:
 [  33.3 M ] portage-20070121.tar.bz2
 * Total space that would be freed in distfiles directory: 33.3 M


Can eclean ignores this copies?

Reproducible: Always

Steps to Reproduce:
Comment 1 Paul Varner (RETIRED) gentoo-dev 2007-01-23 23:06:20 UTC
There are two ways to have eclean ignore the portage snapshot.

eclean -p -t1d distfiles will tell eclean to not remove any files that have been modified within the last day. See man eclean and look at the -t option for full details.

The second way, if you don't want eclean to touch the portage snapshots at all is to add an entry to /etc/eclean/distfiles.exclude

What is not mentioned in the man page is that you can use regular expressions in the filename. So the following entry should ignore all portage snapshots

portage-[0-9]\{8\}.tar.bz2
Comment 2 Thiago Nunes 2007-01-24 06:30:59 UTC
Oh!

Excuse for not have searched in the man page for eclean before file a bug.

Very tanks. Now I will correct the corresponding article in gentoo-wiki.

BTW, your regular expression not works. :)

(In reply to comment #1)
> There are two ways to have eclean ignore the portage snapshot.
> 
> eclean -p -t1d distfiles will tell eclean to not remove any files that have
> been modified within the last day. See man eclean and look at the -t option for
> full details.
> 
> The second way, if you don't want eclean to touch the portage snapshots at all
> is to add an entry to /etc/eclean/distfiles.exclude
> 
> What is not mentioned in the man page is that you can use regular expressions
> in the filename. So the following entry should ignore all portage snapshots
> 
> portage-[0-9]\{8\}.tar.bz2
> 

Comment 3 Paul Varner (RETIRED) gentoo-dev 2007-01-24 17:09:57 UTC
(In reply to comment #2)
> BTW, your regular expression not works. :)
> > portage-[0-9]\{8\}.tar.bz2

That was because I'm used to having to escape the '{}' characters in order for it to be processed correctly. Using the following does work.

portage-[0-9]{8}.tar.bz2