Merge branch 'cleanup/errors-deps'
* cleanup/errors-deps: apt/release: type the file-verification and armor errors new: type the scaffold validator errors debian: type the errors of the format primitives deps: add thiserror pull,package_info,ui,cli: report the pull flow via BuildView deps: trim the tokio feature set to the APIs in use deps: drop the lazy_static dependency data,apt/release,distro_info,new: replace lazy_static with LazyLock deps: drop the unused cmd_lib dependency # Conflicts: # src/ui.rs
This commit is contained in:
commit
a9f535bce5
26 files changed
+964
-532
No files matched your search
+6
-6
@@ -670,7 +670,7 @@ fn main() {
|
||||
.unwrap_or("");
|
||||
let archive = sub_matches.get_one::<bool>("archive").unwrap_or(&false);
|
||||
|
||||
let (pb, progress_callback) = pkh::ui::create_progress_bar(&multi);
|
||||
let view = pkh::ui::PullView::new(&multi);
|
||||
|
||||
// Convert PPA to base URL if provided
|
||||
let base_url = match ppa.map(pkh::package_info::split_ppa) {
|
||||
@@ -692,17 +692,17 @@ fn main() {
|
||||
dist,
|
||||
base_url.as_deref(),
|
||||
repository,
|
||||
Some(&progress_callback),
|
||||
&view,
|
||||
)
|
||||
.await?;
|
||||
pkh::pull::pull(&package_info, None, Some(&progress_callback), *archive).await
|
||||
pkh::pull::pull(&package_info, None, &view, *archive).await
|
||||
}) {
|
||||
pb.finish_and_clear();
|
||||
// exit(1) below would skip the view's Drop
|
||||
drop(view);
|
||||
error!("{}", e);
|
||||
std::process::exit(1);
|
||||
}
|
||||
pb.finish_and_clear();
|
||||
multi.remove(&pb);
|
||||
drop(view);
|
||||
info!("Done.");
|
||||
}
|
||||
Some(("chlog", sub_matches)) => {
|
||||
|
||||
Reference in new issue
Block a user