aboutsummaryrefslogtreecommitdiff
path: root/bpkg/system-package-manager-archive.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-21 07:54:29 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-21 07:54:29 +0200
commit759e8399e15ca570d3d67165664e43a17092c5b3 (patch)
treefb1d80547e0e0cc30c8b0fb19bcff9b633c06ac1 /bpkg/system-package-manager-archive.cxx
parent171d64fc9f1c964efb9434edf7cec0128f1624e2 (diff)
Add --archive-no-{cpu,os} pkg-bindist options
Diffstat (limited to 'bpkg/system-package-manager-archive.cxx')
-rw-r--r--bpkg/system-package-manager-archive.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/bpkg/system-package-manager-archive.cxx b/bpkg/system-package-manager-archive.cxx
index 3f5143f..53ef481 100644
--- a/bpkg/system-package-manager-archive.cxx
+++ b/bpkg/system-package-manager-archive.cxx
@@ -505,8 +505,11 @@ namespace bpkg
}
else
{
- base += '-' + target.cpu;
- base += '-' + os_release.name_id + os_release.version_id;
+ if (!ops->archive_no_cpu ())
+ base += '-' + target.cpu;
+
+ if (!ops->archive_no_os ())
+ base += '-' + os_release.name_id + os_release.version_id;
// First collect the interface languages and then add implementation.
// This way if different languages map to the same runtimes (e.g., C and