message: Add yank check for package that needs to be download
diff: @@ -544,12 +544,26 @@ where
  let pkg = Box::new(source).download_now(pkgid, config)?;
  Ok(pkg)
  }
  - None => bail!(
  + None => {
  + // check whether the package is yanked or not
  + if source.is_yanked(
  + PackageId::new(dep.package_name(), dep.version_req(), source.source_id()).into_ok(),
  + ) {
  + bail!(
  + "provided package has been yanked `{}` in {} with version `{}`",
  + dep.package_name(),
  + source.source_id(),
  + dep.version_req(),
  + )
  + } else {
  + bail!(
  "could not find `{}` in {} with version `{}`",
  dep.package_name(),
  source.source_id(),
  dep.version_req(),
  - ),
  + )
  + }
  + }
  }
  }
  