anchor.diff:    fi
   fi
   
  +filename=`echo $download_url | sed -e 's/^.*\///'`
  +filetype=`echo $filename | sed -e 's/^.*\.//'`
  +
  +if test "x$cmdline_filename" = "x"; then
  +  download_filename="$tmp_dir/$filename"
  +else
  +  download_filename="$cmdline_filename"
  +fi
  +
   do_download "$download_url"  "$download_filename"
   
   sha256=`awk '$1 == "sha256" { print $2 }' "$metadata_filename"`
  
positive.code:   else
      return 1
    fi
  }
  
  # Set the filename for a deb, based on version and machine
  deb_filename() {
    filetype="deb"
    if test "$machine" = "x86_64"; then
      filename="chef_${version}_amd64.deb"
    else
      filename="chef_${version}_i386.deb"
    fi
  }
  
  # Set the filename for an rpm, based on version and machine
  rpm_filename() {
    filetype="rpm"
    filename="chef-${version}.${machine}.rpm"
  }
  
  # Set the filename for a Solaris SVR4 package, based on version and machine
  svr4_filename() {
    filetype="solaris"
    filename="chef-${version}.${machine}.solaris"
  }
  
  aix_filename() {
    filetype="bff"
    filename="chef-${version}.${machine}.bff"
  }
  
  # Set the filename for the sh archive
  shell_filename() {
    filetype="sh"
    filename="chef-${version}-${platform}-${platform_version}-${machine}.sh"
  }
  
  report_bug() {
  
negative.code:   echo "Unable to determine platform version!"
    report_bug
    exit 1
  fi
  
  if test "x$platform" = "xsolaris2"; then
  