Skip to content

Commit

Permalink
Flavours change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed May 31, 2024
1 parent a50603b commit 028a8e3
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,18 @@ impl Module {
let build_path = self.build_path.clone() + &flavour_str;
let install_path = self.install_path.clone() + &flavour_str;

// let modules: Vec<String> = flavour
// .0
// .iter()
// .map(|flav| format!("{}/{}/{}", flav.class, flav.name, flav.version))
// .collect();

// List of modulefiles
let modules: Vec<String> = flavour
.0
.iter()
.map(|flav| {
format!(
"{}/{}/{}/{}",
conf.modulefile_root, flav.class, flav.name, flav.version
)
// format!(
// "{}/{}/{}/{}",
// conf.modulefile_root, flav.class, flav.name, flav.version
// )

// Flavours only works with the module name itself
flav.mod_name()
})
.collect();

Expand Down

0 comments on commit 028a8e3

Please sign in to comment.