Commit eb7646ca authored by Travis Willard's avatar Travis Willard Committed by Aaron Griffin
Browse files

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: default avatarTravis Willard <travis@archlinux.org>
Signed-off-by: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent 97d4a8bb
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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