diff options
author | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-07 00:31:19 +0200 |
---|---|---|
committer | Aaron Griffin <aaronmgriffin@gmail.com> | 2008-05-07 00:31:19 +0200 |
commit | 182c12ec4afa4bfe74669bd1f37748ca748319df (patch) | |
tree | b73f5328091d01d4eec97bf2808beb8ff63c4126 | |
parent | 4c56be5601ebc241f9787b93154f92fdb6f87dd6 (diff) | |
download | devtools-182c12ec4afa4bfe74669bd1f37748ca748319df.tar.gz devtools-182c12ec4afa4bfe74669bd1f37748ca748319df.tar.xz |
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 <aaronmgriffin@gmail.com>
-rwxr-xr-x | extrapkg | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -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." |