pull: split into package_info::lookup and pull
Some checks failed
CI / build (push) Failing after 1m47s

This commit is contained in:
2026-01-11 12:12:19 +01:00
parent b724d46f2c
commit 650adc28a3
5 changed files with 92 additions and 80 deletions

View File

@@ -125,8 +125,11 @@ mod tests {
let cwd = temp_dir.path();
log::debug!("Created temporary directory: {}", cwd.display());
log::info!("Pulling package {} from Ubuntu {}...", package, series);
crate::pull::pull(package, "", Some(series), "", "", dist, Some(cwd), None)
log::info!("Pulling package {} from {}...", package, series);
let package_info = crate::package_info::lookup(package, None, Some(series), "", dist, None)
.await
.expect("Cannot lookup package information");
crate::pull::pull(&package_info, Some(series), Some(cwd), None)
.await
.expect("Cannot pull package");
log::info!("Successfully pulled package {}", package);