From: Nils Ohlmeier <lists@ohlmeier.de>
To: "José Fonseca" <j_r_fonseca@yahoo.co.uk>
Cc: gentoo-dev@gentoo.org
Subject: Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles
Date: Tue, 12 Nov 2002 16:37:39 +0100 [thread overview]
Message-ID: <200211121637.39617.lists@ohlmeier.de> (raw)
In-Reply-To: <20021112102144.GA20309@localhost.localdomain>
On Tuesday 12 November 2002 11:21, José Fonseca wrote:
> All interested, please check the attached new version. It includes all
> suggestions which were made so far. It requires >=sed-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
didn't find the time to do it myself. (And if i did it, it wouldn't be such a
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
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 such
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.XXXXX
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 such
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 would
be to much :)
Thanks anyway for the script. Keep up the good work.
Nils Ohlmeier
--
gentoo-dev@gentoo.org mailing list
next prev parent reply other threads:[~2002-11-12 15:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-11 20:38 [gentoo-dev] Script to clean old files from /usr/portage/distfiles José Fonseca
2002-11-11 23:42 ` Johannes Ballé
2002-11-12 1:13 ` José Fonseca
2002-11-12 2:01 ` Marko Mikulicic
[not found] ` <20021111212849.A23035@twobit.net>
2002-11-12 10:21 ` José Fonseca
2002-11-12 11:28 ` William Kenworthy
2002-11-12 12:28 ` José Fonseca
2002-11-12 15:37 ` Nils Ohlmeier [this message]
2002-11-12 17:56 ` José Fonseca
2002-11-12 23:12 ` Nils Ohlmeier
2002-11-12 0:29 ` Marko Mikulicic
2002-11-12 0:54 ` José Fonseca
2002-11-12 1:50 ` Marko Mikulicic
-- strict thread matches above, loose matches on Subject: below --
2003-03-25 18:55 DJ Cozatt
2003-03-25 20:34 ` Chris Bainbridge
2003-03-27 4:53 ` DJ Cozatt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200211121637.39617.lists@ohlmeier.de \
--to=lists@ohlmeier.de \
--cc=gentoo-dev@gentoo.org \
--cc=j_r_fonseca@yahoo.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox