aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-bindist.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-03-14 09:32:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-03-17 08:58:33 +0200
commitafd0b8699b009b96be34ba2a20441ecb223957ce (patch)
tree7b34b0166c994769135b2b10b4f885e0ad124a4e /bpkg/pkg-bindist.cxx
parent3cc61ab4a6275428520cb0fb2f18dc3e09aef28a (diff)
Add support for generating installation archives in pkg-bindist
Diffstat (limited to 'bpkg/pkg-bindist.cxx')
-rw-r--r--bpkg/pkg-bindist.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/bpkg/pkg-bindist.cxx b/bpkg/pkg-bindist.cxx
index e3ec9fa..32be5dd 100644
--- a/bpkg/pkg-bindist.cxx
+++ b/bpkg/pkg-bindist.cxx
@@ -394,7 +394,11 @@ namespace bpkg
fail << "no standard distribution package manager for this host "
<< "or it is not yet supported" <<
info << "consider specifying alternative distribution package "
- << "manager with --distribution";
+ << "manager with --distribution" <<
+ info << "specify --distribution=archive to generate installation "
+ << "archive" <<
+ info << "consider specifying --os-release-* if unable to correctly "
+ << "auto-detect host operating system";
}
// Note that we pass type from here in case one day we want to provide an
@@ -412,8 +416,12 @@ namespace bpkg
diag_record dr (text);
- dr << "generated " << spm->os_release.name_id << " package for "
- << p.name << '/' << p.version << ':';
+ const string& d (o.distribution_specified ()
+ ? o.distribution ()
+ : spm->os_release.name_id);
+
+ dr << "generated " << d << " package for " << p.name << '/' << p.version
+ << ':';
for (const path& p: r)
dr << "\n " << p;