pull: qol fix, highlight release
This commit is contained in:
+14
-6
@@ -4,6 +4,7 @@ use std::error::Error;
|
||||
use std::io::Read;
|
||||
|
||||
use crate::ProgressCallback;
|
||||
use crossterm::style::Stylize;
|
||||
use log::{debug, warn};
|
||||
|
||||
/// Convert a PPA specification to a base URL
|
||||
@@ -358,15 +359,22 @@ async fn find_package(
|
||||
match get(package_name, series, &p, version, base_url).await {
|
||||
Ok(info) => {
|
||||
if i > 0 {
|
||||
let location = if p.is_empty() {
|
||||
format!("{}/{}", dist, series).cyan()
|
||||
} else {
|
||||
format!("{}/{}-{}", dist, series, p).cyan()
|
||||
};
|
||||
warn!(
|
||||
"Package '{}' not found in development release. Found in {}/{}-{}.",
|
||||
package_name, dist, series, p
|
||||
"Package '{}' not found in development release. Found in {}.",
|
||||
package_name, location
|
||||
);
|
||||
} else {
|
||||
debug!(
|
||||
"Found package '{}' in {}/{}-{}",
|
||||
package_name, dist, series, p
|
||||
);
|
||||
let location = if p.is_empty() {
|
||||
format!("{}/{}", dist, series)
|
||||
} else {
|
||||
format!("{}/{}-{}", dist, series, p)
|
||||
};
|
||||
debug!("Found package '{}' in {}", package_name, location);
|
||||
}
|
||||
return Ok(info);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user