diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-13 15:20:49 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-20 10:26:51 +0100 |
| commit | c741e4f3bc7143031f70b5a353aafc004d26c220 (patch) | |
| tree | 2e5f09a595a65a6699b68b460a8e79a42377fcc2 | |
| parent | 11917fa559c6c9bc5b0993b435f295de06bd161c (diff) | |
solver evaluation: write minimized solver dumps
These are faster to generate and significantly smaller.
| -rw-r--r-- | apt-private/private-install.cc | 2 | ||||
| -rwxr-xr-x | test/integration/test-solver3-evaluation | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index 29e23a57e..e3d176ffe 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -107,7 +107,7 @@ static void WriteApportReport(pkgCacheFile &Cache, std::string &title, std::vect edspFlags |= EDSP::Request::FORBID_NEW_INSTALL; EDSP::WriteRequest(Cache, edspDump, edspFlags, &Progress); - EDSP::WriteScenario(Cache, edspDump, &Progress); + EDSP::WriteLimitedScenario(Cache, edspDump, &Progress); edspDump.Close(); Progress.OverallProgress(50, 100, 50, _("Writing error report")); diff --git a/test/integration/test-solver3-evaluation b/test/integration/test-solver3-evaluation index af12698b5..a873d5b21 100755 --- a/test/integration/test-solver3-evaluation +++ b/test/integration/test-solver3-evaluation @@ -13,6 +13,7 @@ insertpackage 'unstable' 'y' 'all' '3' 'Depends: b | a' insertpackage 'unstable' 'a' 'all' '3' 'Depends: c' insertpackage 'unstable' 'b' 'all' '3' insertpackage 'unstable' 'c' 'all' '3' +insertpackage 'unstable' 'unrelated' 'all' '3' setupaptarchive @@ -114,7 +115,7 @@ AptSolverDump: Package: apport Architecture: all Version: 3 - APT-ID: 5 + APT-ID: 6 Source: apport Source-Version: 3 Priority: optional @@ -208,7 +209,7 @@ Depends: b | a Package: apport Architecture: all Version: 3 -APT-ID: 5 +APT-ID: 6 Source: apport Source-Version: 3 Priority: optional |
