pull: qol fix, highlight release
CI / build (push) Successful in 14m50s
CI / snap (push) Successful in 1m46s

This commit is contained in:
2026-08-11 16:33:57 +02:00
parent d3a07bc80d
commit e25645b3bb
+14 -6
View File
@@ -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);
}