From 6c491521a1d5bb0804965b87c68d4b1d7b00c3fc Mon Sep 17 00:00:00 2001 From: slakmagik Date: Fri, 11 Sep 2009 05:03:37 +0000 Subject: [PATCH] correct part of the last revision which broke sbopkg's proper handling of the situation where no SBo packages are installed --- src/usr/sbin/sbopkg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/usr/sbin/sbopkg b/src/usr/sbin/sbopkg index d58f768..3b0630f 100755 --- a/src/usr/sbin/sbopkg +++ b/src/usr/sbin/sbopkg @@ -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 \