From da8cd388c4fd95d1748285e4d6bd549c776ef5e1 Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Fri, 1 Nov 2013 21:48:17 +1000 Subject: Return zero from extract_file with local source file The call to bsdtar to check if a file needs extracted returns 1 if it does not. We then propegate this return value accidentally which can cause makepkg to report an error later on. Explicitly return 0 in this case. Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index e01e7ab3..af97c3b9 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -419,7 +419,7 @@ extract_file() { if bsdtar -tf "$file" -q '*' &>/dev/null; then cmd="bsdtar" else - return + return 0 fi ;; esac -- cgit v1.2.3-70-g09d2