diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-26 16:44:06 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2025-03-26 16:47:37 +0100 |
| commit | 6e5d8929c06cb645e639022477a14ca65d483e32 (patch) | |
| tree | 401af4400996089a79c4ad61277538fdf90d8ad9 /apt-private | |
| parent | 823ff724d013dbe484e3da91bd54ae972f85629c (diff) | |
solver3: Correctly deb822-escape error message in evaluation report
The error messages are multi-line now, so need correct escaping.
LP: #2104276
Diffstat (limited to 'apt-private')
| -rw-r--r-- | apt-private/private-install.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-private/private-install.cc b/apt-private/private-install.cc index f1211d25e..7103c6dc7 100644 --- a/apt-private/private-install.cc +++ b/apt-private/private-install.cc @@ -128,7 +128,9 @@ static void WriteApportReport(pkgCacheFile &Cache, std::string &title, std::vect { crash << "ErrorMessage:\n"; for (auto &error : errors) - crash << " " << error << "\n"; + { + crash << " " << SubstVar(SubstVar(APT::String::Strip(error), "\n\n", "\n.\n"), "\n", "\n ") << "\n"; + } } std::ifstream toCopy(edspDump.Name()); |
