diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2023-02-01 13:47:47 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2023-02-08 15:44:57 +0300 |
commit | d6500b9d7ee5cf68a7507f9d4d726ffb767d827a (patch) | |
tree | 6d2af81b0424223b725e4a72973a1488caad7151 /bpkg/system-package-manager-debian.cxx | |
parent | a05076ceb13341780ea1f446626658164f35c5f3 (diff) |
Implement system package manager query and install support for Fedora
Note that the main/devel name resolution based on the project name still needs
to be fixed.
Diffstat (limited to 'bpkg/system-package-manager-debian.cxx')
-rw-r--r-- | bpkg/system-package-manager-debian.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bpkg/system-package-manager-debian.cxx b/bpkg/system-package-manager-debian.cxx index 998c4f4..4cad141 100644 --- a/bpkg/system-package-manager-debian.cxx +++ b/bpkg/system-package-manager-debian.cxx @@ -62,6 +62,7 @@ namespace bpkg if (pn != nullptr && pn->string ().compare (0, 3, "lib") == 0 && + pn->string ().size () > 3 && suffix (m, "-dev") && !(ns.size () > 1 && suffix (ns[1], "-dev"))) { @@ -909,7 +910,7 @@ namespace bpkg // non-libraries with the lib prefix (both of which we do not // recomment) will have to provide a manual mapping. // - if (n.compare (0, 3, "lib") == 0) + if (n.compare (0, 3, "lib") == 0 && n.size () > 3) { // Keep the main package name empty as an indication that it is to // be discovered. @@ -1283,7 +1284,7 @@ namespace bpkg assert (install_ && !installed_); installed_ = true; - // Collect and merge all the Debian packages/version for the specified + // Collect and merge all the Debian packages/versions for the specified // bpkg packages. // struct package |