makepkg: ignore epoch when undeclared

In this case, we skip the epoch versioning entirely, as if it were
declared as 0.

Prevents errors such as:

/usr/bin/makepkg: line 244: ((: !  : syntax error: operand expected
(error token is " ")
==> Finished making: cower-git :20110808-1 (Mon Aug  8 17:17:27 EDT
2011)

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dave Reisner 2011-08-08 17:20:53 -04:00 committed by Dan McGee
parent 1e16b94a85
commit 1a919a11b8
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ get_url() {
##
get_full_version() {
if [[ -z $1 ]]; then
if (( ! $epoch )); then
if [[ $epoch ]] && (( ! $epoch )); then
echo $pkgver-$pkgrel
else
echo $epoch:$pkgver-$pkgrel