From 1a919a11b85cb882bf5e632036a9030e4a98aba0 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Mon, 8 Aug 2011 17:20:53 -0400 Subject: 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 Signed-off-by: Dan McGee --- 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 fa0ceb2e..72f4d493 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -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 -- cgit v1.2.3-54-g00ecf