Fixed an issue when a 'dir://' repository is empty

This commit is contained in:
Matteo Rossini 2016-03-02 20:28:18 +01:00
parent 45d8928e96
commit 1bc0e22ae8

View file

@ -1423,7 +1423,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
continue
fi
( cd $localpath
ls -ld *.t[blxg]z|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
ls -ld *.t[blxg]z 2>/dev/null|sort -rn|grep ^-|awk '{print "./SLACKPKGPLUS_'$PREPO'/"$NF}'|awk -f /usr/libexec/slackpkg/pkglist.awk >> ${TMPDIR}/pkglist-pre
)
fi
done