diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-18 20:07:02 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-18 20:15:08 +0100 |
| commit | 1c4fa81cc398e21868ad237509f1ea8e772d76de (patch) | |
| tree | 9376185fca5ef2a2c794a2d976d2e559f7b05b07 /apt-pkg/deb | |
| parent | 963efeff8778afacef35f69c181d234e0a27d5d3 (diff) | |
Add a --comment option to record Comment: in history
Suggested-by: mhoye on IRC
Diffstat (limited to 'apt-pkg/deb')
| -rw-r--r-- | apt-pkg/deb/dpkgpm.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/deb/dpkgpm.cc b/apt-pkg/deb/dpkgpm.cc index ecedb8cd5..8cadd2712 100644 --- a/apt-pkg/deb/dpkgpm.cc +++ b/apt-pkg/deb/dpkgpm.cc @@ -1087,6 +1087,8 @@ bool pkgDPkgPM::OpenLog() std::string RequestingUser = AptHistoryRequestingUser(); if (RequestingUser != "") WriteHistoryTag("Requested-By", RequestingUser); + if (auto comment = _config->Find("APT::History::Comment"); not comment.empty()) + WriteHistoryTag("Comment", comment); WriteHistoryTag("Install", install); WriteHistoryTag("Reinstall", reinstall); WriteHistoryTag("Upgrade", upgrade); |
