From 6a3da1a16d5b58c37e02f4784030b055efa588e1 Mon Sep 17 00:00:00 2001 From: Diego Elio 'Flameeyes' Pettenò Date: Sat, 7 Aug 2010 12:58:04 +0200 Subject: Simplify reverse-deps fetching. Since qatom+cut+tr is not extremely fast, sort and remove duplicate lines before, then only uniq them to drop the atoms to single entries. --- fetch-reverse-deps.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fetch-reverse-deps.sh b/fetch-reverse-deps.sh index 486bad8..0ed8ba1 100755 --- a/fetch-reverse-deps.sh +++ b/fetch-reverse-deps.sh @@ -4,8 +4,8 @@ for atom in $@; do wget -q -O- http://tinderbox.dev.gentoo.org/misc/{r,d}index/${atom} done -) | egrep -v '^\[B\]' | \ +) | egrep -v '^\[B\]' | sort -u | \ xargs -n1 qatom | \ cut -d ' ' -f 1-2 | \ tr ' ' '/' | \ - sort -u + uniq -- cgit v1.2.3-65-gdbad