1 |
2010/3/19 Brian Dolbec <brian.dolbec@×××××.com>: |
2 |
>>Dmitry Bashkatov |
3 |
>> |
4 |
>>Yes, I have already wrote a script. But it will be better to include |
5 |
>>this functionality to eclean. |
6 |
> |
7 |
> I am just completing a modular re-write of eclean. It will be included |
8 |
> in the new gentoolkit-0.3.0_rc10 release coming out any time now. |
9 |
> |
10 |
> There is now a place in the code that will accept external functions for |
11 |
> additional checks to determine if the file is to be cleaned or not. The |
12 |
> only thing missing is a possible configure/command line option to pass |
13 |
> them in for the search. |
14 |
> |
15 |
> I would be interested in your script to see how it may fit with the new |
16 |
> eclean. |
17 |
> -- |
18 |
> Brian Dolbec <brian.dolbec@×××××.com> |
19 |
> |
20 |
|
21 |
Here it is! File /etc/enetclean.hosts must contain all hosts, which |
22 |
share distfiles. Format is <host> or <user>@<host>. Script doesn't |
23 |
delete anything. It just prints out files that can be deleted. To |
24 |
delete use "enetclean | xargs rm -f". |
25 |
There is unhandled situation when distfiles located in another |
26 |
location than default /usr/portage/distfiles. Also it doesn't handle |
27 |
any errors such as failed connection. But anyway I think this script |
28 |
will be completely rewritten. |