Gentoo Archives: gentoo-dev

From: Nils Ohlmeier <lists@××××××××.de>
To: "José Fonseca" <j_r_fonseca@××××××××.uk>
Cc: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles
Date: Tue, 12 Nov 2002 23:12:48
Message-Id: 200211130012.00848.lists@ohlmeier.de
In Reply to: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles by "José Fonseca"
1 On Tuesday 12 November 2002 18:56, José Fonseca wrote:
2 > On Tue, Nov 12, 2002 at 04:37:39PM +0100, Nils Ohlmeier wrote:
3 > > cloudcity sbin # distfiles-clean -p
4 > > sed: can't read /var/cache/edb/dep/sys-kernel/linux-headers-2.4.19: No
5 > > such file or directory
6 > > alsa-lib-0.5.10b.tar.bz2
7 > > gaim-0.59.3.tar.bz2
8 > > j2sdk-1_4_1_01-linux-i586.bin *
9 >
10 > Unfortunately there is nothing one can do to know that the
11 > j2sdk-1_4_1_01-linux-i586.bin is used by sun-jdk-1.4.1.01.ebuild because
12 > it isn't listed there (SRC_URI=""). The only solution is have an option
13 > to pass a file with a list of wildcards of the packages wich should be
14 > left alone, for these situations.
15
16 Okay -i works good.
17
18 > > kde-i18n-3.0.4.tar.bz2 *
19 > > kde-i18n-gentoo.patch *
20 >
21 > Strange, these two files are listed on
22 > /var/cache/edb/dep/app-i18n/kde-i18n-3.0.4 in my system. Aren't they
23 > there in yours too? If not, see if doing
24 >
25 > ebuild /usr/portage/app-i18n/kde-i18n/kde-i18n-3.0.4.ebuild depend
26 >
27 > helps.
28
29 Sorry my fault. I did not read carefull enough. The tar.bz2 can be removed,
30 because i canceld the download after seeing the size of the file :)
31 And the patch is downloaded because of a bug.
32
33 > > rp8_linux20_libc6_i386_cs2_rpm *
34 >
35 > rp8_linux20_libc6_i386_cs2_rpm isn't a full URI with slashes '/' so it
36 > was being considered as junk by the script. It should be fixed now.
37
38 Yes fixed.
39
40 > > I marked the packets which are installed with an *. So removing of
41 > > this would be to much :)
42 >
43 > Try again, with the script from
44 > http://mefriss1.swan.ac.uk/~jfonseca/chest/gentoo/distfiles-clean [to
45 > avoid flood everybody inbox with more attachments], by doing
46 >
47 > distfiles-clean -p -i ignorelist
48 >
49 > where ignorelist is a file containing
50 >
51 > j2sdk-*.bin
52 >
53 > plus anything else you want.
54
55 Everything works for me now perfectly.
56 BTW i tested your skript on my one year old 1.2 installation and i gave me
57 over 400MB diskspace back!
58
59 Definalty a candidate for gentoolkit IMHO.
60
61 Thanks
62 Nils Ohlmeier
63
64
65 --
66 gentoo-dev@g.o mailing list