aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-10-18 11:43:02 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-10-18 11:43:02 +0300
commite768326671a0edfe5c3e2b1fc4d6780660f1559e (patch)
treed79cc75368a2e1320872467ed34df12389b1d586
parent5b5b63886b0555c9697061601f865dfbced4764f (diff)
When print constraints version for multiple packages use per-package printed constraints sets
-rw-r--r--bpkg/pkg-build-collect.cxx33
1 files changed, 24 insertions, 9 deletions
diff --git a/bpkg/pkg-build-collect.cxx b/bpkg/pkg-build-collect.cxx
index fc8d071..5827d6d 100644
--- a/bpkg/pkg-build-collect.cxx
+++ b/bpkg/pkg-build-collect.cxx
@@ -1366,19 +1366,24 @@ namespace bpkg
// " info: ..."
string indent (" ");
- set<package_key> printed;
diag_record dr (fail);
dr << "unable to satisfy constraints on package " << n <<
info << c1->dependent << c1->db << " depends on (" << n << ' '
<< c1->value << ")";
- print_constraints (dr, *c1, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (dr, *c1, indent, printed);
+ }
dr << info << c2->dependent << c2->db << " depends on (" << n
<< ' ' << c2->value << ")";
- print_constraints (dr, *c2, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (dr, *c2, indent, printed);
+ }
dr << info << "available " << p1->available_name_version () <<
info << "available " << p2->available_name_version () <<
@@ -2248,19 +2253,24 @@ namespace bpkg
{
// " info: ..."
string indent (" ");
- set<package_key> printed;
*dr << error << "unable to satisfy constraints on package "
<< dn <<
info << nm << pdb << " depends on (" << dn << ' '
<< *dp.constraint << ")";
- print_constraints (*dr, pkg, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (*dr, pkg, indent, printed);
+ }
*dr << info << c.dependent << c.db << " depends on (" << dn
<< ' ' << c.value << ")";
- print_constraints (*dr, c, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (*dr, c, indent, printed);
+ }
*dr << info << "specify " << dn << " version to satisfy "
<< nm << " constraint";
@@ -2970,20 +2980,25 @@ namespace bpkg
// " info: ..."
string indent (" ");
- set<package_key> printed;
*dr << error << "unable to satisfy constraints on "
<< "package " << n <<
info << c2.dependent << c2.db << " depends on ("
<< n << ' ' << c2.value << ")";
- print_constraints (*dr, c2, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (*dr, c2, indent, printed);
+ }
*dr << info << c1.dependent << c1.db
<< " depends on (" << n << ' '
<< c1.value << ")";
- print_constraints (*dr, c1, indent, printed);
+ {
+ set<package_key> printed;
+ print_constraints (*dr, c1, indent, printed);
+ }
*dr << info << "available "
<< bp.available_name_version () <<