From 7fd9cd67b4d38e09ade9652d72ed759c5e84cc1c Mon Sep 17 00:00:00 2001 From: emmett1 Date: Wed, 20 Nov 2019 23:30:22 +0800 Subject: [PATCH] updated --- scratch | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scratch b/scratch index a012c89..26a6bb8 100755 --- a/scratch +++ b/scratch @@ -907,12 +907,15 @@ outdatepkg() { for pkg in $(allinstalled); do if [ ! -e "$INDEX_DIR/$pkg/.lock" ] && getportpath $pkg >/dev/null; then . $(getportpath $pkg)/$BUILD_SCRIPT + if [ -z "$name" ] || [ -z "$version" ]; then + continue + fi iversion=$(installed_pkg_info version $pkg) irelease=$(installed_pkg_info release $pkg) if [ "$release" != "$irelease" ] || [ "$version" != "$iversion" ]; then echo $name fi - unset iversion irelease + unset iversion irelease version release fi done } @@ -1195,6 +1198,9 @@ scratch_outdate() { for pkg in $(allinstalled); do if [ $(getportpath $pkg) ]; then . $(getportpath $pkg)/$BUILD_SCRIPT + if [ -z "$name" ] || [ -z "$version" ]; then + continue + fi iversion=$(installed_pkg_info version $pkg) irelease=$(installed_pkg_info release $pkg) [ -f "$INDEX_DIR/$pkg/.lock" ] && ITSLOCK="[locked]" @@ -1219,7 +1225,7 @@ scratch_outdate() { OUTDATE=yes fi fi - unset ITSLOCK + unset ITSLOCK name version fi done