fix how scratch read masked packages

This commit is contained in:
emmett1
2020-09-20 22:06:51 +08:00
parent 497b92c1cd
commit b42c48a88c

View File

@@ -697,7 +697,7 @@ scratch_remove() {
outdatepkg() {
for pkg in $(allinstalled); do
if [ -f "$MASK_FILE" ] && [ $(grep -Ev '^(#|$| )' $MASK_FILE | grep $pkg) ]; then
if [ -f "$MASK_FILE" ] && [ $(grep -Ev '^(#|$| )' $MASK_FILE | grep -w $pkg) ]; then
continue
fi
[ -e "$PKGDB_DIR/$pkg/.lock" ] && continue