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..."
21 if test -s .rem_cache.tmp1.
sort; then
22 cp .rem_cache.tmp1.
sort .rem_cache.tmp1
23 for i
in `rev .rem_cache.tmp1.sort | cut -d - -f 3- | rev`; do
24 grep "^$i$" $LS | cut
-d / -f 1 >> .rem_cache.tmp1
26 sort -u .rem_cache.tmp1
> .rem_cache.tmp1.
sort
29 grep "^$i$" $LS | cut
-d / -f 1 >> .rem_cache.tmp1
31 if ! test -s .rem_cache.tmp1
; then
35 sort -u .rem_cache.tmp1
> .rem_cache.tmp1.
sort
37 if cmp .rem_cache.tmp1.
sort .rem_cache.tmp2.
sort > /dev
/null
2>&1; then
40 cp .rem_cache.tmp1.
sort .rem_cache.tmp2.
sort