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 rm -f $SBOPKGLIST
find /var/log/packages -type f -name "*$REPO_TAG" \ find /var/log/packages -type f -name "*$REPO_TAG" \
-printf "%P\n" | sort > $SBOPKGLIST -printf "%P\n" 2> /dev/null | sort > $SBOPKGLIST
if [[ -f $SBOPKGLIST ]]; then if [[ -s $SBOPKGLIST ]]; then
if [[ $DIAG ]]; then if [[ $DIAG ]]; then
sed -i 's/$/ "" OFF/' $SBOPKGLIST sed -i 's/$/ "" OFF/' $SBOPKGLIST
dialog --separate-output --title "Installed $REPO_NAME Packages" --checklist \ dialog --separate-output --title "Installed $REPO_NAME Packages" --checklist \