From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18817 invoked by uid 1002); 12 Nov 2002 15:38:27 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 18808 invoked from network); 12 Nov 2002 15:38:27 -0000 Content-Type: text/plain; charset="iso-8859-15" From: Nils Ohlmeier To: =?iso-8859-15?q?Jos=E9=20Fonseca?= Date: Tue, 12 Nov 2002 16:37:39 +0100 User-Agent: KMail/1.4.3 Cc: gentoo-dev@gentoo.org References: <20021111203828.GA10784@localhost.localdomain> <20021111212849.A23035@twobit.net> <20021112102144.GA20309@localhost.localdomain> In-Reply-To: <20021112102144.GA20309@localhost.localdomain> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200211121637.39617.lists@ohlmeier.de> X-Virus-Scanned: by AMaViS snapshot-20020222 Subject: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles X-Archives-Salt: 80a78077-6cad-4e41-bed3-5946f9e5fafb X-Archives-Hash: a0ea1ce8f6afa37b5da7ed53f258fa2d On Tuesday 12 November 2002 11:21, Jos=E9 Fonseca wrote: > All interested, please check the attached new version. It includes all > suggestions which were made so far. It requires >=3Dsed-4.0, otherwise > replace "xargs sed -s" by "xargs -l sed". If there aren't further > corrections/suggestions then I'll create a bug in bugzilla for it. First of all great script. I was thinking about such a script a long time= but=20 didn't find the time to do it myself. (And if i did it, it wouldn't be su= ch a=20 good scipt :-) Feedback / Corrections: the first run results in the following cloudcity root # distfiles-clean -p mktemp: cannot make temp file /tmp//usr/local/sbin/distfiles-clean.E63Npk= : No=20 such file or directory /usr/local/sbin/distfiles-clean: $TMPFILE: ambiguous redirect sed: can't read /var/cache/edb/dep/sys-kernel/linux-headers-2.4.19: No su= ch=20 file or directory xargs: sed: terminated by signal 13 rm: too few arguments Try `rm --help' for more information. I think there is an error in the script in line 53. I changed /tmp/$0.XXX= XX=20 into /tmp/$PROGRAM.XXXXX and then the result looks like this: cloudcity sbin # distfiles-clean -p sed: can't read /var/cache/edb/dep/sys-kernel/linux-headers-2.4.19: No su= ch=20 file or directory alsa-lib-0.5.10b.tar.bz2 gaim-0.59.3.tar.bz2 j2sdk-1_4_1_01-linux-i586.bin * kde-i18n-3.0.4.tar.bz2 * kde-i18n-gentoo.patch * rp8_linux20_libc6_i386_cs2_rpm * I marked the packets which are installed with an *. So removing of this w= ould=20 be to much :) Thanks anyway for the script. Keep up the good work. Nils Ohlmeier -- gentoo-dev@gentoo.org mailing list