While searching for a script that removes obsolete tar.gz archives from the distfiles directory, I found this document via Google: http://www.gentoo.org/proj/en/infrastructure/mirrors/overview-distfile.xml#doc_chap1 It sounds great, but where can I find those scripts? Reproducible: Always Steps to Reproduce: 1. 2. 3.
What about using app-admin/tmpwatch for this? IIRC there is even an example shown for exactly this purpose in /etc/cron.daily/tmpwatch. I don't think that the scripts you are referring to were designed to keep your local distfiles directory tidy. ;-)
Scripts mentioned in the document you've found are used to clean old distfiles on Gentoo mirrors. However, it would be nice if these scripts could be included in portage.
tmpwatch sounds like a nice tool, but it's not quite what I need. I want a script that removes _obsolete_ packages from /usr/portage/distfiles. Meaning, when I have foo-1.0.tar.gz and foo-1.1.tar.gz in there, and I have foo 1.1 installed, then I want foo-1.0.tar.gz to be deleted. A while ago, I had a script that did exactly this, but unfortunately said script stopped working after the 2004.3 release or so. If anyone _does_ have a script like that, I'd appreciate it if it could be made available through portage. Aside from all that, I think it is unfortunate that the document I found explains how to use several scripts _without_ explaining what these scripts are or where they can be found. It is confusing. IMHO, a short paragraph should be added to this text which explains what it is about.
You can use http://www.stacken.kth.se/~foo/gentoo/files/distclean-0.2.py @Peter - this bug definitely doesn't affect Gentoo Infrastructure, nor Gentoo website, nor Gentoo Documentation.
Thanks for the URL, ph. Is there any chance of getting this script into Portage? Other than that, I think the bug has something to do with the website because the particular page I found lacks vital information for it to make any sense. If I hadn't submitted this bug report, I wouldn't have any idea what it is about. So IMHO there is room for improvement.
This isn't infra related.
> I hadn't submitted this bug report, I wouldn't have any idea what it is about. > So IMHO there is room for improvement. That's probably because this document is for devs. I think title already says it: "Overview of our Distfile mirroring system". It doesn't have anything to do with your local /usr/portage/distfiles.
(In reply to comment #3) > Aside from all that, I think it is unfortunate that the document I found > explains how to use several scripts _without_ explaining what these scripts are > or where they can be found. It is confusing. IMHO, a short paragraph should be > added to this text which explains what it is about. Please note this is an INFRASTRUCTURE document, and therefore is not meant for general users, it is meant only for mirror admins. As an aside, this forums thread has 6 pages worth of posts containing tens of different implementations of a distfiles cleaner: http://forums.gentoo.org/viewtopic-p-12786.html Closing as invalid, feel free to file a request to the tools-portage herd.