summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-10-01 23:29:01 -0500
committerDan McGee <dan@archlinux.org>2007-10-01 23:29:58 -0500
commitc42e37bd602263065c3b7b4344310f4f29661cd4 (patch)
treedc5079e6981ca259a7bf34c87d3c3acbcb7f4b3d
parent43820a5a0d7f8e0dc142c74422d96092d0f138cf (diff)
downloaddevtools32-c42e37bd602263065c3b7b4344310f4f29661cd4.tar.xz
extrapkg: Allow scp limit option to be passed on to scp
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-xextrapkg9
1 files changed, 8 insertions, 1 deletions
diff --git a/extrapkg b/extrapkg
index 36103b9..05dc17f 100755
--- a/extrapkg
+++ b/extrapkg
@@ -44,8 +44,15 @@ elif [ "$cmd" == "communitypkg" ]; then
tag="CURRENT"
fi
+# see if any limit options were passed, we'll send them to SCP
+unset scpopts
+if [ "$1" = "-l" ]; then
+ scpopts="$1 $2"
+ shift 2
+fi
+
if [ "$repo" != "community" ]; then
- scp $pkgfile archlinux.org:staging/$repo/add
+ scp $scpopts $pkgfile archlinux.org:staging/$repo/add
if [ "$(md5sum $pkgfile | cut -d' ' -f1)" != "$(ssh archlinux.org md5sum staging/${repo}/add/$pkgfile | cut -d' ' -f1)" ]; then
echo "File got corrupted during upload, cancelled."
exit 1