pull,ui: show the pull headline beside the spinner
PullView routed its messages into {msg}, but the spinner template only rendered {prefix}, so every unsized phase showed a bare spinner. The transfer template rendered {msg} on its own line under an empty prefix, leaving the bar under a spinner with no context.
Give the view a headline ("Pulling package <name> from <series>..."), render it beside the spinner, and put the current message or transfer bar below it. This matches the deb view's two-line layout.
This commit is contained in:
1 parent
fb61df35fe
commit
1af528f407
2 files changed
+18
-10
No files matched your search
+6
-1
@@ -685,7 +685,12 @@ fn main() {
|
||||
.unwrap_or("");
|
||||
let archive = sub_matches.get_one::<bool>("archive").unwrap_or(&false);
|
||||
|
||||
let view = pkh::ui::PullView::new(&multi);
|
||||
let origin = series
|
||||
.or(dist)
|
||||
.map(|origin| format!(" from {origin}"))
|
||||
.unwrap_or_default();
|
||||
let view =
|
||||
pkh::ui::PullView::new(&multi, &format!("Pulling package {package}{origin}..."));
|
||||
|
||||
// Convert PPA to base URL if provided
|
||||
let base_url = match ppa.map(pkh::package_info::split_ppa) {
|
||||
|
||||
Reference in new issue
Block a user