9 #check if package exists
11 echo -n > .rem_cache.tmp1
12 echo -n > .rem_cache.tmp2
13 echo -n > .rem_cache.tmp1.
sort
14 echo -n > .rem_cache.tmp2.
sort
15 echo "Getting dependencies..."
17 if test -s .rem_cache.tmp1.
sort; then
18 cp .rem_cache.tmp1.
sort .rem_cache.tmp1
19 for i
in `cut -d / -f 1 .rem_cache.tmp1.sort | sort -u | rev | cut -d - -f 3- | rev`; do
20 ls */depends |
xargs grep "^$i$" >> .rem_cache.tmp1
22 sort -u .rem_cache.tmp1
> .rem_cache.tmp1.
sort
25 ls */depends |
xargs grep "^$i$" >> .rem_cache.tmp1
27 if ! test -s .rem_cache.tmp1
; then
31 sort -u .rem_cache.tmp1
> .rem_cache.tmp1.
sort
33 if cmp .rem_cache.tmp1.
sort .rem_cache.tmp2.
sort > /dev
/null
2>&1; then
36 cp .rem_cache.tmp1.
sort .rem_cache.tmp2.
sort