From 182c12ec4afa4bfe74669bd1f37748ca748319df Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Tue, 6 May 2008 18:31:19 -0400 Subject: Remove suffix usage from extrapkg The new dbscripts do not need this. All info can be gathered from the $CARCH variable in the filename. Signed-off-by: Aaron Griffin --- extrapkg | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/extrapkg b/extrapkg index d042300..e76bcc3 100755 --- a/extrapkg +++ b/extrapkg @@ -20,16 +20,6 @@ if [ ! -f PKGBUILD ]; then exit 1 fi -# define staging areas based on architecture -if [ "$CARCH" = "i686" ]; then - suffix='' -elif [ "$CARCH" = "x86_64" ]; then - suffix='64' -else - echo "CARCH must be set to a recognized value!" - exit 1 -fi - source PKGBUILD pkgfile=${pkgname}-${pkgver}-${pkgrel}-${CARCH}.pkg.tar.gz oldstylepkgfile=${pkgname}-${pkgver}-${pkgrel}.pkg.tar.gz @@ -68,8 +58,8 @@ if [ "$1" = "-l" ]; then fi if [ "$repo" != "community" ]; then - # combine what we know into a variable (suffix defined based on $CARCH) - uploadto="staging/${repo}${suffix}/add/$(basename ${pkgfile})" + # combine what we know into a variable + uploadto="staging/${repo}/add/$(basename ${pkgfile})" scp ${scpopts} "${pkgfile}" "archlinux.org:${uploadto}" if [ "$(md5sum "${pkgfile}" | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum "${uploadto}" | cut -d' ' -f1)" ]; then echo "File got corrupted during upload, cancelled." -- cgit v1.2.3-70-g09d2