Browse Source

sde-reschedule: fix case when there is no flist available

stable/0.6
Alejandro Mery 11 years ago
parent
commit
d419cca3fc
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      bin/sde-reschedule-package

+ 5
- 0
bin/sde-reschedule-package

@ -92,6 +92,11 @@ remove_package() {
local flist="$root/var/adm/flists/$pkg"
local tag= f=
if [ ! -s "$flist" ]; then
echo_warning "$pkg: $flist not found."
return
fi
sort -r "$flist" | while read tag f; do
if [ "$tag" != "$pkg:" ]; then
echo_warning "$pkg: invalid tag '$tag' in $flist"

Loading…
Cancel
Save