Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/extrapkg
diff options
context:
space:
mode:
authorTravis Willard <travis@archlinux.org>2008-01-13 17:47:33 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2008-01-23 16:11:38 -0600
commiteb7646ca18bf86036e6da576df8fae8bd78368f4 (patch)
tree8e9a60ffe959e73076137b1a195098e4dde3875d /extrapkg
parent97d4a8bbd02c6813a6ef03ac9e8c2c48d68015a3 (diff)
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 <travis@archlinux.org> Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'extrapkg')
-rwxr-xr-xextrapkg2
1 files changed, 1 insertions, 1 deletions
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