Gentoo Archives: gentoo-dev

From: "José Fonseca" <j_r_fonseca@××××××××.uk>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Script to clean old files from /usr/portage/distfiles
Date: Mon, 11 Nov 2002 20:38:53
Message-Id: 20021111203828.GA10784@localhost.localdomain
1 I never do `rm -f /usr/portage/distfiles'. I find very useful having the
2 sources of the installed packages ihandy as it avoids downloading
3 everything over andagain when updating to new releases of the same
4 version, or when installing Gentoo on another system. But after some
5 time that directory gets too fat and is too boring to eliminate the
6 deprecated packages by hand so I've made a script to automate this. You
7 can see it attached.
8
9 I've started with a shell script, then python, then I've read qpkg.sh,
10 ebuild.sh, portage.py and many others in the search of the easiest way
11 to do this. In the end everything boiled down to 2 lines - the rest is
12 just sintatic sugar!
13
14 I hope you enjoy it.
15
16 José Fonseca

Attachments

File name MIME type
distfiles-clean text/plain

Replies

Subject Author
Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles "Johannes Ballé" <joba123@×××××.de>
Re: [gentoo-dev] Script to clean old files from /usr/portage/distfiles Marko Mikulicic <marko@××××.org>