Gentoo Archives: gentoo-dev

From: Alec Berryman <alec@×××××××××.org>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] Proposal: re-organizing our source mirrors into two categories: full and partial
Date: Sat, 26 Jul 2003 13:42:35
Message-Id: 1059226950.1509.2.camel@localhost
In Reply to: Re: [gentoo-dev] Proposal: re-organizing our source mirrors into two categories: full and partial by Stuart Herbert
1 On Sat, 2003-07-26 at 07:40, Stuart Herbert wrote:
2 > Just a thought, as I'm still new around here, but is there any automatic
3 > auditing to make sure that every single file in /distfiles is still required
4 > by at least 1 ebuild?
5
6 This bash one-liner was posted to the forums; I can't find it now, so
7 apologies to the original author:
8
9 bash <(comm -23 <(find /usr/portage/distfiles/ -maxdepth 1 -type f -printf %f\\n | sort) <(find /usr/portage/ /usr/local/portage/ -path '*/*/files/digest-*' -print0 | xargs -0 awk '{print $3}' | sort -u) | sed -e 's|^|rm -i /usr/portage/distfiles/|')

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies