diff options
| author | Julian Andres Klode <jak@debian.org> | 2024-04-19 19:30:26 +0000 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2024-04-19 19:30:26 +0000 |
| commit | 235d4ab12e72aeef4bbfc59de1d6d51cacdb2e66 (patch) | |
| tree | 2dd7fdd46601827cf88ed1211a0bcb89dfb34c1d /apt-pkg/acquire-item.cc | |
| parent | 70103339b017a42ea71a56c27c221a79ccc3116f (diff) | |
| parent | 858a551b50ea3871748d9196896e54b361c3d545 (diff) | |
Merge branch 'audit' into 'main'
Add an "audit" error level
See merge request apt-team/apt!323
Diffstat (limited to 'apt-pkg/acquire-item.cc')
| -rw-r--r-- | apt-pkg/acquire-item.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 3c491adc0..b534d56a3 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -2013,6 +2013,8 @@ void pkgAcqMetaClearSig::Failed(string const &Message,pkgAcquire::MethodConfig c return; } + _error->Audit(_("Repositories should provide a clear-signed InRelease file, but none found at %s."), Target.URI.c_str()); + // Queue the 'old' InRelease file for removal if we try Release.gpg // as otherwise the file will stay around and gives a false-auth // impression (CVE-2012-0214) @@ -3985,7 +3987,7 @@ void pkgAcqFile::Done(string const &Message,HashStringList const &CalcHashes, _error->PushToStack(); _error->Errno("pkgAcqFile::Done", "Symlinking file %s failed", DestFile.c_str()); std::stringstream msg; - _error->DumpErrors(msg, GlobalError::DEBUG, false); + _error->DumpErrors(msg, GlobalError::NOTICE, false); _error->RevertToStack(); ErrorText = msg.str(); Status = StatError; |
