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:
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
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 >
(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