aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zen/cmds/builds_cmd.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index b832850a2..cecb5d8a0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,5 @@
##
+- Bugfix: `zen builds download` no longer injects the `default` build part when `--download-spec` is given; the spec drives part selection
## 5.8.9
- Feature: Hub hydration packs small files into raw CAS pack blobs to reduce request count for modules dominated by tiny metadata files
diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp
index 22e292f9c..79cf9afdd 100644
--- a/src/zen/cmds/builds_cmd.cpp
+++ b/src/zen/cmds/builds_cmd.cpp
@@ -1645,7 +1645,7 @@ BuildsDownloadSubCmd::Run(const ZenCliOptions& /*GlobalOptions*/)
std::vector<Oid> BuildPartIds = ParseBuildPartIds(m_BuildPartIds, Opts);
std::vector<std::string> BuildPartNames = ParseBuildPartNames(m_BuildPartNames, Opts);
- if (BuildPartIds.empty() && BuildPartNames.empty())
+ if (BuildPartIds.empty() && BuildPartNames.empty() && m_DownloadSpecPath.empty())
{
BuildPartNames = {"default"};
}