Browse Source

sde-reschedule: fixed sde-reschedule-dependers to work when there are too many packages

karasz/new-early
Alejandro Mery 16 years ago
parent
commit
be2184fe18
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      bin/sde-reschedule-dependers

+ 2
- 3
bin/sde-reschedule-dependers

@ -97,7 +97,7 @@ reschedule_dependers()
pattern="^\[DEP\].* $pattern\( .*\)\?$"
if config_iscross "$config" || [ "$reschedule_theoric" = "yes" ]; then
ls -1 "$sandbox/var/adm/packages"/* 2> /dev/null | sed -e 's|.*/||' |
(cd "$sandbox/var/adm/packages" && ls -1 .) |
while read x; do
y=$( package_confdir "$x" )
if [ -s "$y/$x.cache" ]; then
@ -107,8 +107,7 @@ reschedule_dependers()
fi
done
else
grep -l "$pattern" "$sandbox/var/adm/cache"/* 2> /dev/null |
sed -e 's|.*/||'
(cd "$sandbox/var/adm/cache" && grep -l "$pattern" *)
fi
}

Loading…
Cancel
Save