|
|
|
@ -617,7 +617,12 @@ async fn download_versions(
|
|
|
|
|
// TODO actually parse and use the format
|
|
|
|
|
let url = |
|
|
|
|
url::Url::parse(®istry_config.get_dl_url(&vers.name, &vers.vers, &vers.cksum))?; |
|
|
|
|
let output_path = config.output.path.join(url.path()); |
|
|
|
|
//let output_path = config.output.path.join(format!("{}/{}/download", vers.name, vers.vers));
|
|
|
|
|
assert!( |
|
|
|
|
url.path().starts_with('/'), |
|
|
|
|
"sanity check in case there are unforseen exceptions to this" |
|
|
|
|
); |
|
|
|
|
let output_path = config.output.path.join(&url.path()[1..]); |
|
|
|
|
|
|
|
|
|
if config.dry_run { |
|
|
|
|
debug!(%url, "skipping download (--dry-run mode)"); |
|
|
|
|