From 0dae5e3b51a81e04e8d6e063ef43eed0b82232b2 Mon Sep 17 00:00:00 2001 From: Jaden Weiss Date: Wed, 22 Nov 2017 18:09:59 -0500 Subject: [PATCH] fix bug in check in fetchinfo --- lpkg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lpkg.sh b/lpkg.sh index 66e5b16..c4e476a 100755 --- a/lpkg.sh +++ b/lpkg.sh @@ -34,7 +34,7 @@ infoval() { # fetch and verify package info fetchinfo() { - if [ -e "$LPKGDIR/db/$1/pkginfo.sh" -a "$UPDATE" -ne 1 ]; then + if [ -e "$LPKGDIR/db/$1/pkginfo.sh" -a -z "$UPDATE" ]; then cp "$LPKGDIR/db/$1/pkginfo.sh" "$tmpdir/$1.pkginfo" || return $? else fetch "$REPO" "pkgs/$1.pkginfo" "$tmpdir/$1.pkginfo" || return $?