silence some remove_uninstalled_packages() noise

If the user tried to 'View uninstalled packages' with no packages in
OUTPUT, an error message would interrupt the dialog display for an
instant.
This commit is contained in:
slakmagik 2011-03-10 04:18:02 +00:00
parent 76e6c5ddb1
commit 2429774709

View File

@ -3129,7 +3129,7 @@ remove_uninstalled_packages() {
local PKG
rm -f $PACKAGES
ls $OUTPUT/*$REPO_TAG.t?z | while read PKG; do
ls $OUTPUT/*$REPO_TAG.t?z 2>/dev/null | while read PKG; do
PKG=${PKG##*/}
if [ ! -f /var/log/packages/${PKG%.t?z} ]; then
echo "$PKG" >> $PACKAGES