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::ProgressCallback;
|
||||||
use crate::apt::release::{self, VerifiedRelease};
|
use crate::apt::release::{self, VerifiedRelease};
|
||||||
|
use crossterm::style::Stylize;
|
||||||
use log::{debug, warn};
|
use log::{debug, warn};
|
||||||
|
|
||||||
/// Split a PPA reference into its `(user, name)` parts
|
/// Split a PPA reference into its `(user, name)` parts
|
||||||
@@ -523,9 +524,9 @@ async fn find_package(
|
|||||||
Ok(info) => {
|
Ok(info) => {
|
||||||
if i > 0 {
|
if i > 0 {
|
||||||
let location = if p.is_empty() {
|
let location = if p.is_empty() {
|
||||||
format!("{dist}/{series}")
|
format!("{}/{}", dist, series).cyan()
|
||||||
} else {
|
} else {
|
||||||
format!("{dist}/{series}-{p}")
|
format!("{}/{}-{}", dist, series, p).cyan()
|
||||||
};
|
};
|
||||||
warn!(
|
warn!(
|
||||||
"Package '{}' not found in development release. Found in {}.",
|
"Package '{}' not found in development release. Found in {}.",
|
||||||
|
|||||||
Reference in New Issue
Block a user