Commit eb2c0aaf authored by Jeremy Soller's avatar Jeremy Soller

Fix package loop

parent 5303301d
......@@ -151,8 +151,8 @@ pub fn install(config: Config) -> Result<(), String> {
for (packagename, _package) in config.packages {
let remote_path = format!("{}/{}.tar", pkgutils::REPO_REMOTE, $name);
let local_path = format!("pkg/{}.tar", $name);
let remote_path = format!("{}/{}.tar", pkgutils::REPO_REMOTE, packagename);
let local_path = format!("pkg/{}.tar", packagename);
if let Some(parent) = Path::new(&local_path).parent() {
println!("Create package repository {}", parent.display());
fs::create_dir_all(parent).map_err(|err| format!("failed to create package repository {}: {}", parent.display(), err))?;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment