diff options
author | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2010-08-07 12:58:04 +0200 |
---|---|---|
committer | Diego Elio 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2010-08-07 12:58:04 +0200 |
commit | 6a3da1a16d5b58c37e02f4784030b055efa588e1 (patch) | |
tree | 15c588b23d5f83ed251ac90155451137d78efb40 | |
parent | Allow fetching rdeps for multiple packages, folded together, and filter block... (diff) | |
download | flameeyes-tinderbox-6a3da1a16d5b58c37e02f4784030b055efa588e1.tar.gz flameeyes-tinderbox-6a3da1a16d5b58c37e02f4784030b055efa588e1.tar.bz2 flameeyes-tinderbox-6a3da1a16d5b58c37e02f4784030b055efa588e1.zip |
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.
-rwxr-xr-x | fetch-reverse-deps.sh | 4 |
1 files 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 |