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:
vhaudiquet committed 2026-11-24 18:35:17 +01:00
1 parent fb61df35fe
commit 1af528f407
2 files changed
+18 -10

No files matched your search

+6 -1
View File
@@ -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) {