Browse Source

* 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
misl/sde-wrapper
Alejandro Mery 17 years ago
parent
commit
a68162466f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      bin/sde-download2

+ 5
- 3
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"

Loading…
Cancel
Save