summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@atos.net>2021-09-29 11:08:46 +0200
committerMatthias Beyer <matthias.beyer@atos.net>2021-09-29 11:08:46 +0200
commita7d5de071e0d7bc0adc8303caf592c344cb6939a (patch)
tree596c08631e4f63e2680dcd07ff75b3c70f98512e
parent19b2e31c67a190449a7bd398df3eb5a465463a85 (diff)
parent495b2dcd7ac711fd1fb0d6abb1d8e6548ea50309 (diff)
Merge branch 'source-path-do-not-contain-hash'
-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 {