summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-09-15 13:56:22 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-09-29 11:08:35 +0200
commit495b2dcd7ac711fd1fb0d6abb1d8e6548ea50309 (patch)
tree596c08631e4f63e2680dcd07ff75b3c70f98512e
parent19b2e31c67a190449a7bd398df3eb5a465463a85 (diff)
Do not include source hash in source file name
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
-rw-r--r--src/source/mod.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/source/mod.rs b/src/source/mod.rs
index 080ff32..53ea1a5 100644
--- a/src/source/mod.rs
+++ b/src/source/mod.rs
@@ -68,11 +68,9 @@ impl SourceEntry {
}
pub fn path(&self) -> PathBuf {
- self.source_file_directory().join(format!(
- "{}-{}.source",
- self.package_source_name,
- self.package_source.hash().value()
- ))
+ self.source_file_directory().join({
+ (self.package_source_name.as_ref() as &std::path::Path).with_extension("source")
+ })
}
pub fn url(&self) -> &Url {