package_info: drop the ANSI color from the not-found warning

The location embedded in the log record was styled with crossterm: a
remote consumer of pkh's log records would receive ANSI codes inside
the message text. Plain text is the logger's business to style.
This commit is contained in:
2026-09-18 20:55:56 +02:00
parent c2dae4f3f9
commit 4fae02bc85
+2 -3
View File
@@ -6,7 +6,6 @@ use xz2::read::XzDecoder;
use crate::ProgressCallback;
use crate::apt::release::{self, VerifiedRelease};
use crossterm::style::Stylize;
use log::{debug, warn};
/// Split a PPA reference into its `(user, name)` parts
@@ -524,9 +523,9 @@ async fn find_package(
Ok(info) => {
if i > 0 {
let location = if p.is_empty() {
format!("{}/{}", dist, series).cyan()
format!("{dist}/{series}")
} else {
format!("{}/{}-{}", dist, series, p).cyan()
format!("{dist}/{series}-{p}")
};
warn!(
"Package '{}' not found in development release. Found in {}.",