From a68162466ff42ce0f882605946b6ca98940bd166 Mon Sep 17 00:00:00 2001 From: Alejandro Mery Date: Sat, 14 Jul 2007 00:23:36 +0000 Subject: [PATCH] * fixed sde-download2 to not call the multiplexer if the file is already there git-svn-id: svn://svn.opensde.net/opensde/opensde/trunk@21721 10447126-35f2-4685-b0cf-6dd780d3921f --- bin/sde-download2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/sde-download2 b/bin/sde-download2 index 12f259c..6c8ffbe 100755 --- a/bin/sde-download2 +++ b/bin/sde-download2 @@ -132,9 +132,9 @@ done # constants to pass to sde-download-get downloadgetopt= -if [ $verbose -gt 1 ]; then +if [ $verbose -gt 2 ]; then downloadgetopt='-v' -elif [ $verbose -le 0 ]; then +elif [ $verbose -lt 0 ]; then downloadgetopt='-q' fi if [ -n "$dryrun" ]; then @@ -164,7 +164,9 @@ esac | while read pkg cksum file location; do # debug output [ $verbose -le 1 ] || echo_info "pkg:$pkg file:$file ($cksum) source:$location" - if [ -e "$tmpfile.lock" ]; then + if [ -s "$SDEROOT/$file" ]; then + : + elif [ -e "$tmpfile.lock" ]; then echo_warning "$file: skipping." else "$SDEROOT"/bin/sde-download-get $downloadgetopt -- "$tmpfile" "$location"