aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-01-19 17:02:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-01-19 17:08:36 +0200
commitb6fd471a23d34c4acf1a6eb7bcc8c7e70f66808b (patch)
tree7b3fe1afc036c1742a57cda6737ab46bc7b4f0b0
parent81ceb44197f403fa84f93a471d0e9d3705d2f5c0 (diff)
Add system_name to system_package_status
-rw-r--r--bpkg/pkg-build.cxx4
-rw-r--r--bpkg/system-package-manager.hxx8
2 files changed, 7 insertions, 5 deletions
diff --git a/bpkg/pkg-build.cxx b/bpkg/pkg-build.cxx
index 154fde9..ca27770 100644
--- a/bpkg/pkg-build.cxx
+++ b/bpkg/pkg-build.cxx
@@ -1764,14 +1764,10 @@ namespace bpkg
// db and no-db cases consistently.
//
if (sp == nullptr || !sp->authoritative)
- {
- //@@ Also save the system_version to show in the plan?
-
db->system_repository->insert (nm,
*vc->min_version,
true /* authoritative */,
sps);
- }
}
return make_pair (move (*vc), sps);
diff --git a/bpkg/system-package-manager.hxx b/bpkg/system-package-manager.hxx
index 5fe1431..b8511a6 100644
--- a/bpkg/system-package-manager.hxx
+++ b/bpkg/system-package-manager.hxx
@@ -84,8 +84,14 @@ namespace bpkg
//
bpkg::version version;
- // System (as in, distribution package) version.
+ // System (as in, distribution package) package name and version for
+ // diagnostics.
//
+ // Note that this status may represent multiple system packages (for
+ // example, libssl3 and libssl3-dev) and here we have the main package
+ // name (for example, libssl3).
+ //
+ string system_name;
string system_version;
// The system package can be either "available already installed",