FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Pacman Development

 
 
LinkBack Thread Tools
 
Old 02-09-2011, 12:56 PM
Dan McGee
 
Default Ensure pkgbase/epoch are defined before doing anything

When generating integrity sums, we could get some weird output before due to
epoch being uninitialized:

/usr/bin/makepkg: line 234: [[: 2.6.37: syntax error: invalid arithmetic operator (error token is ".6.37")

Signed-off-by: Dan McGee <dan@archlinux.org>
---
scripts/makepkg.sh.in | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 001178a..16dc0b8 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -1850,6 +1850,10 @@ else
source "$BUILDFILE"
fi

+# set defaults if they weren't specified in buildfile
+pkgbase=${pkgbase:-${pkgname[0]}}
+epoch=${epoch:-0}
+
if (( GENINTEG )); then
mkdir -p "$srcdir"
chmod a-s "$srcdir"
@@ -1859,9 +1863,6 @@ if (( GENINTEG )); then
exit 0 # $E_OK
fi

-pkgbase=${pkgbase:-${pkgname[0]}}
-epoch=${epoch:-0}
-
# check the PKGBUILD for some basic requirements
check_sanity || exit 1

--
1.7.4
 
Old 02-10-2011, 12:32 AM
Allan McRae
 
Default Ensure pkgbase/epoch are defined before doing anything

On 09/02/11 23:56, Dan McGee wrote:

When generating integrity sums, we could get some weird output before due to
epoch being uninitialized:

/usr/bin/makepkg: line 234: [[: 2.6.37: syntax error: invalid arithmetic operator (error token is ".6.37")

Signed-off-by: Dan McGee<dan@archlinux.org>


Signed-off-by: Allan
 

Thread Tools




All times are GMT. The time now is 01:48 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org