From eb7646ca18bf86036e6da576df8fae8bd78368f4 Mon Sep 17 00:00:00 2001 From: Travis Willard Date: Sun, 13 Jan 2008 17:47:33 -0500 Subject: Ensure scp'ing the package file works when PKGDEST is defined. Make the call to scp use $(basename $pkgfile) so that we don't get oddness. Signed-off-by: Travis Willard Signed-off-by: Aaron Griffin --- extrapkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extrapkg b/extrapkg index e4708ac..1212b53 100755 --- a/extrapkg +++ b/extrapkg @@ -63,7 +63,7 @@ if [ "$1" = "-l" ]; then fi if [ "$repo" != "community" ]; then - scp ${scpopts} ${pkgfile} archlinux.org:staging/$repo/add/${pkgfile} + scp ${scpopts} ${pkgfile} archlinux.org:staging/$repo/add/$(basename ${pkgfile}) if [ "$(md5sum ${pkgfile} | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum staging/${repo}/add/$(basename ${pkgfile}) | cut -d' ' -f1)" ]; then echo "File got corrupted during upload, cancelled." exit 1 -- cgit v1.2.3-70-g09d2