From de32f037bc399c98c9b772741d859a0e8fc70eef Mon Sep 17 00:00:00 2001 From: Roland Schaer Date: Wed, 8 Jan 2025 16:15:17 +0100 Subject: [PATCH] fix: maven-mvnd does not install with aqua (#3993) --- src/aqua/aqua_registry.rs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/aqua/aqua_registry.rs b/src/aqua/aqua_registry.rs index b5bdc4d0ce..a1731fb4c8 100644 --- a/src/aqua/aqua_registry.rs +++ b/src/aqua/aqua_registry.rs @@ -322,13 +322,7 @@ impl AquaPackage { } pub fn asset(&self, v: &str) -> Result { - // derive asset from url if not set and url contains a path - if self.asset.is_empty() && self.url.split("/").count() > "//".len() { - let asset = self.url.rsplit("/").next().unwrap_or(""); - self.parse_aqua_str(asset, v, &Default::default()) - } else { - self.parse_aqua_str(&self.asset, v, &Default::default()) - } + self.parse_aqua_str(&self.asset, v, &Default::default()) } pub fn asset_strs(&self, v: &str) -> Result> { @@ -450,6 +444,9 @@ impl AquaFile { } fn apply_override(mut orig: AquaPackage, avo: &AquaPackage) -> AquaPackage { + if orig.r#type != avo.r#type { + orig.r#type = avo.r#type.clone(); + } if !avo.repo_owner.is_empty() { orig.repo_owner = avo.repo_owner.clone(); }