1 |
Am Monday 11 November 2002 21:38 schrieb José Fonseca: |
2 |
> I never do `rm -f /usr/portage/distfiles'. I find very useful having the |
3 |
> sources of the installed packages ihandy as it avoids downloading |
4 |
> everything over andagain when updating to new releases of the same |
5 |
> version, or when installing Gentoo on another system. But after some |
6 |
> time that directory gets too fat and is too boring to eliminate the |
7 |
> deprecated packages by hand so I've made a script to automate this. You |
8 |
> can see it attached. |
9 |
|
10 |
Sounds good! I was missing this feature ... |
11 |
|
12 |
> |
13 |
> I've started with a shell script, then python, then I've read qpkg.sh, |
14 |
> ebuild.sh, portage.py and many others in the search of the easiest way |
15 |
> to do this. In the end everything boiled down to 2 lines - the rest is |
16 |
> just sintatic sugar! |
17 |
> |
18 |
> I hope you enjoy it. |
19 |
> |
20 |
> José Fonseca |
21 |
|
22 |
When I run your script, though, I get this: |
23 |
|
24 |
sed: can't read /usr/portage/metadata/cache/sys-kernel/linux-headers-2.4.19: |
25 |
No such file or directory |
26 |
sed: can't read /usr/portage/metadata/cache/berlin-base/berlin-env-1.0: No |
27 |
such file or directory |
28 |
sed: can't read /usr/portage/metadata/cache/sys-devel/binutils-2.13.90.0.4: No |
29 |
such file or directory |
30 |
sed: can't read /usr/portage/metadata/cache/sys-devel/gcc-3.2-r1: No such file |
31 |
or directory |
32 |
sed: can't read /usr/portage/metadata/cache/sys-apps/tcp-wrappers-7.6-r4: No |
33 |
such file or directory |
34 |
sed: can't read /usr/portage/metadata/cache/sys-libs/ncurses-5.2.20020511-r3: |
35 |
No such file or directory |
36 |
sed: can't read /usr/portage/metadata/cache/sys-libs/readline-4.2a-r1: No such |
37 |
file or directory |
38 |
sed: can't read /usr/portage/metadata/cache/fresco-base/fresco-env-1.0: No |
39 |
such file or directory |
40 |
sed: can't read /usr/portage/metadata/cache/fresco-base/fresco-20020808: No |
41 |
such file or directory |
42 |
sed: can't read /usr/portage/metadata/cache/media-video/em8300-modules-0.13.0: |
43 |
No such file or directory |
44 |
sed: can't read |
45 |
/usr/portage/metadata/cache/media-video/em8300-libraries-0.13.0: No such file |
46 |
or directory |
47 |
|
48 |
Could this be my fault? Sometimes when I was messing with the files in |
49 |
/usr/portage I wasn't sure whether an 'emerge rsync' would fix it all up |
50 |
again ... |
51 |
|
52 |
I also have some stuff in /usr/local/portage ... |
53 |
|
54 |
Johannes |
55 |
|
56 |
|
57 |
-- |
58 |
gentoo-dev@g.o mailing list |