From afd0b8699b009b96be34ba2a20441ecb223957ce Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 14 Mar 2023 09:32:22 +0200 Subject: Add support for generating installation archives in pkg-bindist --- bpkg/pkg-bindist.cxx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'bpkg/pkg-bindist.cxx') 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; -- cgit v1.1