From 30e94854be89a75cb4d5ebc0a8051b422d472940 Mon Sep 17 00:00:00 2001 From: emmett1 Date: Tue, 29 May 2018 16:36:04 +0800 Subject: [PATCH] fix upgrade --- scratch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scratch b/scratch index ca25316..8b94403 100755 --- a/scratch +++ b/scratch @@ -798,7 +798,7 @@ if [ "$mode" = "upgrade" ]; then parseopt ${ARG[@]} needarg "$PKG" || exit 1 for pkg in ${PKG[@]}; do # check for existence of package - if [ ! -e "$INDEX_DIR/$dep/.pkginfo" ]; then + if [ ! -e "$INDEX_DIR/$pkg/.pkginfo" ]; then msgerr "Package '$pkg' not installed." exit 1 fi