summaryrefslogtreecommitdiff
path: root/extrapkg
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-11-29 00:36:31 -0600
committerAaron Griffin <aaronmgriffin@gmail.com>2008-01-23 16:11:37 -0600
commit59d373a62b759c5096ecd090eff48c349d71dece (patch)
treedf71e3f09d65bbe56963481b378286d5e88dfbcf /extrapkg
parentbc8a791ad64e34914ccce1559ec86ddf84db2427 (diff)
downloaddevtools32-59d373a62b759c5096ecd090eff48c349d71dece.tar.xz
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: 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 b63d273..437b330 100755
--- a/extrapkg
+++ b/extrapkg
@@ -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