1 |
This isn't much of a problem for me, but eclean-dist is behaving |
2 |
strangely for me. I don't know if it's a bug or if something screwy |
3 |
I'm not seeing with my exclusion file. |
4 |
|
5 |
$ eclean-dist --pretend |
6 |
* Building file list for distfiles cleaning... |
7 |
* Your distfiles directory was already clean. |
8 |
|
9 |
The following Deprecated files were saved from cleaning due to exclusion file entries |
10 |
Traceback (most recent call last): |
11 |
File "/usr/bin/eclean-dist", line 44, in <module> |
12 |
main() |
13 |
File "/usr/lib64/python2.7/site-packages/gentoolkit/eclean/cli.py", line 494, in main |
14 |
output=output) |
15 |
File "/usr/lib64/python2.7/site-packages/gentoolkit/eclean/cli.py", line 427, in doAction |
16 |
clean_size = cleaner.pretend_clean(saved) |
17 |
UnboundLocalError: local variable 'cleaner' referenced before assignment |
18 |
|
19 |
----- |
20 |
|
21 |
The two deprecated files saved from cleaning are openrc-0.9.8.1.tar.bz2 |
22 |
and openrc-0.9.8.2.tar.bz2, which I see (without errors) when I use the |
23 |
eclean-dist --destructive : |
24 |
|
25 |
$ eclean-dist --pretend --destructive |
26 |
* Building file list for distfiles cleaning... |
27 |
* Here are the distfiles that would be deleted: |
28 |
[ 48.8 K ] simplejson-2.2.1.tar.gz |
29 |
[ 29.2 M ] wxPython-src-2.8.11.0.tar.bz2 |
30 |
=========== |
31 |
[ 29.2 M ] Total space from 2 files would be freed in the distfiles directory |
32 |
|
33 |
The following Deprecated files were saved from cleaning due to exclusion file entries |
34 |
[ 162.9 K ] openrc-0.9.8.1.tar.bz2 |
35 |
[ 162.9 K ] openrc-0.9.8.2.tar.bz2 |
36 |
=========== |
37 |
[ 325.9 K ] Total space from 2 package files |
38 |
Re-run the last command with the -D option to clean them as well |
39 |
|
40 |
----- |
41 |
|
42 |
And here's my exclusion file: |
43 |
|
44 |
$ cat /etc/eclean/distfiles.exclude |
45 |
# /etc/eclean/distfiles.exclude |
46 |
# In this file you can list some categories or cat/pkg-name for which you want |
47 |
# to protect distfiles from "ecleaning". You can also name some specific files. |
48 |
# See `man eclean` for syntax details. |
49 |
|
50 |
metadata.dtd |
51 |
|
52 |
## categories to keep |
53 |
sys-apps |
54 |
app-arch |
55 |
app-backup |
56 |
app-portage |
57 |
|
58 |
## packages to keep |
59 |
|
60 |
dev-libs/openssl |
61 |
sys-devel/binutils |