makepkg: strip comments after pkgver/pkgrel when checking value
Inline comments after pkgver or pkgrel would cause the sanity checks to fail so remove them before checking the value. Signed-off-by: Allan McRae <allan@archlinux.org> Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
cc13f47532
commit
36f31dd133
1 changed files with 2 additions and 2 deletions
|
@ -1448,7 +1448,7 @@ check_sanity() {
|
|||
ret=1
|
||||
fi
|
||||
|
||||
awk -F'=' '$1 ~ /^[[:space:]]*pkgver$/' "$BUILDFILE" |
|
||||
awk -F'=' '$1 ~ /^[[:space:]]*pkgver$/' "$BUILDFILE" | sed "s/[[:space:]]*#.*//" |
|
||||
while IFS='=' read -r _ i; do
|
||||
eval i=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$i")\"
|
||||
if [[ $i = *[[:space:]:-]* ]]; then
|
||||
|
@ -1457,7 +1457,7 @@ check_sanity() {
|
|||
fi
|
||||
done || ret=1
|
||||
|
||||
awk -F'=' '$1 ~ /^[[:space:]]*pkgrel$/' "$BUILDFILE" |
|
||||
awk -F'=' '$1 ~ /^[[:space:]]*pkgrel$/' "$BUILDFILE" | sed "s/[[:space:]]*#.*//" |
|
||||
while IFS='=' read -r _ i; do
|
||||
eval i=\"$(sed 's/^\(['\''"]\)\(.*\)\1$/\2/' <<< "$i")\"
|
||||
if [[ $i = *[[:space:]-]* ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue