FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux Development

 
 
LinkBack Thread Tools
 
Old 04-01-2011, 09:35 PM
Dan McGee
 
Default commitpkg: move all rsync opts to rsyncopts var

Signed-off-by: Dan McGee <dan@archlinux.org>
---
commitpkg | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/commitpkg b/commitpkg
index 009c777..6a100de 100755
--- a/commitpkg
+++ b/commitpkg
@@ -97,9 +97,9 @@ for i in 'changelog' 'install'; do
done

# see if any limit options were passed, we'll send them to rsync
-unset rsyncopts
+rsyncopts="-e ssh -p --chmod 'ug=rw,o=r' -c -h -L --progress --partial"
if [ "$1" = '-l' ]; then
- rsyncopts="--bwlimit=$2"
+ rsyncopts="$rsyncopts --bwlimit=$2"
shift 2
fi

@@ -128,7 +128,7 @@ for _arch in ${arch[@]}; do
fi

echo -n 'uploading '
- rsync -p --chmod 'ug=rw,o=r' -c -h -L --progress $rsyncopts --partial "${pkgfile}" -e ssh "$server:staging/$repo/${pkgfile##*/}" || abort
+ rsync $rsyncopts "${pkgfile}" "$server:staging/$repo/${pkgfile##*/}" || abort
done
archrelease $repo-${_arch} || abort
done
--
1.7.4.2
 

Thread Tools




All times are GMT. The time now is 01:42 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org