From 339b2663e613e2bb198ecfddc3d486ca5626708d Mon Sep 17 00:00:00 2001 From: Hind Montassif Date: Tue, 10 Dec 2024 16:20:32 +0100 Subject: [PATCH] Fix channel in PackageInfo --- libmamba/src/specs/package_info.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libmamba/src/specs/package_info.cpp b/libmamba/src/specs/package_info.cpp index 62dfea2ea1..f35d4d443b 100644 --- a/libmamba/src/specs/package_info.cpp +++ b/libmamba/src/specs/package_info.cpp @@ -69,7 +69,8 @@ namespace mamba::specs { out.platform = url.platform_name(); url.clear_platform(); - out.channel = util::rstrip(url.str(), '/'); + out.channel = util::rstrip(url.str(specs::CondaURL::Credentials::Show), '/'); + } // Note that we use `rsplit...` instead of `split...` // because the package name may contain '-'.