Commit 59d373a6 authored by Aaron Griffin's avatar Aaron Griffin
Browse files

Use full filename for scp upload



Fix an issue where a missing add directory causes the package to be uploaded as
a file named "add"

Signed-off-by: default avatarAaron Griffin <aaronmgriffin@gmail.com>
parent bc8a791a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -52,7 +52,7 @@ if [ "$1" = "-l" ]; then
fi

if [ "$repo" != "community" ]; then
    scp ${scpopts} ${pkgfile} archlinux.org:staging/$repo/add
    scp ${scpopts} ${pkgfile} archlinux.org:staging/$repo/add/${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