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 <allan@archlinux.org>
This commit is contained in:
Allan McRae 2013-11-01 21:48:17 +10:00
parent 57090d8cba
commit da8cd388c4
1 changed files with 1 additions and 1 deletions

View File

@ -419,7 +419,7 @@ extract_file() {
if bsdtar -tf "$file" -q '*' &>/dev/null; then
cmd="bsdtar"
else
return
return 0
fi ;;
esac