diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-20 21:50:15 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-03-23 18:43:02 +0300 |
commit | ceb8d922d6cadefd835278d20184348b1b1dbf98 (patch) | |
tree | 437641411ca6b1104a7b6aa471c2f4065fe9524e /bpkg/system-package-manager-archive.cxx | |
parent | 1afab626ba5cdfb16dccd9249e4223d16d131c71 (diff) |
Don't generate main binary package for header-only libraries on Debian and Fedora
Diffstat (limited to 'bpkg/system-package-manager-archive.cxx')
-rw-r--r-- | bpkg/system-package-manager-archive.cxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bpkg/system-package-manager-archive.cxx b/bpkg/system-package-manager-archive.cxx index 0df4580..b8df860 100644 --- a/bpkg/system-package-manager-archive.cxx +++ b/bpkg/system-package-manager-archive.cxx @@ -313,6 +313,11 @@ namespace bpkg const package_name& pn (sp->name); const version& pv (sp->version); + // Use version without iteration in paths, etc. + // + string pvs (pv.string (false /* ignore_revision */, + true /* ignore_iteration */)); + bool lib (pt == "lib"); bool priv (ops->private_ ()); // Private installation. @@ -497,7 +502,7 @@ namespace bpkg // libhello-1.2.3-x86_64-windows10-msvc17.4 // libhello-1.2.3-x86_64-debian11-gcc12-rust1.62 // - string base (pn.string () + '-' + pv.string ()); + string base (pn.string () + '-' + pvs); if (ops->archive_build_meta_specified ()) { |