correct part of the last revision which broke sbopkg's proper handling

of the situation where no SBo packages are installed
This commit is contained in:
slakmagik 2009-09-11 05:03:37 +00:00
parent e346c03c16
commit 6c491521a1

View File

@ -413,8 +413,8 @@ get_sbo_packages() {
rm -f $SBOPKGLIST
find /var/log/packages -type f -name "*$REPO_TAG" \
-printf "%P\n" | sort > $SBOPKGLIST
if [[ -f $SBOPKGLIST ]]; then
-printf "%P\n" 2> /dev/null | sort > $SBOPKGLIST
if [[ -s $SBOPKGLIST ]]; then
if [[ $DIAG ]]; then
sed -i 's/$/ "" OFF/' $SBOPKGLIST
dialog --separate-output --title "Installed $REPO_NAME Packages" --checklist \