Revert "package_info: drop the ANSI color from the not-found warning"
This reverts commit 4fae02bc85.
This commit is contained in:
+3
-2
@@ -6,6 +6,7 @@ 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
|
||||
@@ -523,9 +524,9 @@ async fn find_package(
|
||||
Ok(info) => {
|
||||
if i > 0 {
|
||||
let location = if p.is_empty() {
|
||||
format!("{dist}/{series}")
|
||||
format!("{}/{}", dist, series).cyan()
|
||||
} else {
|
||||
format!("{dist}/{series}-{p}")
|
||||
format!("{}/{}-{}", dist, series, p).cyan()
|
||||
};
|
||||
warn!(
|
||||
"Package '{}' not found in development release. Found in {}.",
|
||||
|
||||
Reference in New Issue
Block a user