set path to nar in narinfo
This commit is contained in:
parent
d524222a86
commit
7dec14fc1a
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,5 @@ impl<'a> MakeNar<'a> {
|
||||||
file_size: Some(self.file_size),
|
file_size: Some(self.file_size),
|
||||||
url: "",
|
url: "",
|
||||||
})
|
})
|
||||||
// signature consists of: store_path, nar_hash, nar_size, and references
|
|
||||||
// nar_info.add_signature(self.signing_key);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,8 @@ impl<'a> Uploader<'a> {
|
||||||
debug!("moving {} to {}", temp_path, real_path);
|
debug!("moving {} to {}", temp_path, real_path);
|
||||||
// this is implemented as a copy-and-delete
|
// this is implemented as a copy-and-delete
|
||||||
s3.rename(&temp_path, &real_path).await?;
|
s3.rename(&temp_path, &real_path).await?;
|
||||||
|
// set nar url in narinfo
|
||||||
|
nar_info.url = real_path.as_ref();
|
||||||
|
|
||||||
// upload narinfo
|
// upload narinfo
|
||||||
let narinfo_path = self.path.narinfo_path();
|
let narinfo_path = self.path.narinfo_path();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue