Skip to content

Commit

Permalink
Fix PKG_BUILDNUM env variable for post-link scripts (#2420)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsoranzo authored Mar 29, 2023
1 parent d810465 commit 967ca0b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libmamba/src/core/link.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,9 +408,7 @@ namespace mamba
envmap["PREFIX"] = env_prefix.size() ? env_prefix : prefix.string();
envmap["PKG_NAME"] = pkg_info.name;
envmap["PKG_VERSION"] = pkg_info.version;
envmap["PKG_BUILDNUM"] = pkg_info.build_string.empty()
? std::to_string(pkg_info.build_number)
: pkg_info.build_string;
envmap["PKG_BUILDNUM"] = std::to_string(pkg_info.build_number);

std::string PATH = env::get("PATH").value_or("");
envmap["PATH"] = concat(path.parent_path().string(), env::pathsep(), PATH);
Expand Down

0 comments on commit 967ca0b

Please sign in to comment.