1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-23 00:08:50 -05:00

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

View File

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