diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-03-04 13:37:12 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-03-04 13:37:12 +0100 |
commit | 248c28c0b882930908493af94f714ce4de3706ac (patch) | |
tree | 12e51e389716ba1ea4626d3a222bc4ce83a657cf /src/commands/build.rs | |
parent | 5b46db841f74663c896c37e5f40a4ad08699ba2b (diff) |
Remove counting of package files
This removes the counting of package files and using that value to set
the length of the progress bar.
This was just overhead and because of the duration of the bars to be
visible (very short) simply not necessary.
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'src/commands/build.rs')
-rw-r--r-- | src/commands/build.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/commands/build.rs b/src/commands/build.rs index 421f7ee..9880552 100644 --- a/src/commands/build.rs +++ b/src/commands/build.rs @@ -57,7 +57,6 @@ pub async fn build( config: &Configuration, repo: Repository, repo_path: &Path, - max_packages: u64, ) -> Result<()> { use crate::db::models::{EnvVar, GitHash, Image, Job, Package, Submit}; @@ -159,7 +158,6 @@ pub async fn build( .iter() .map(|storename| { let bar_release_loading = progressbars.bar(); - bar_release_loading.set_length(max_packages); let p = config.releases_directory().join(storename); debug!("Loading release directory: {}", p.display()); @@ -175,7 +173,6 @@ pub async fn build( let (staging_store, staging_dir, submit_id) = { let bar_staging_loading = progressbars.bar(); - bar_staging_loading.set_length(max_packages); let (submit_id, p) = if let Some(staging_dir) = matches.value_of("staging_dir").map(PathBuf::from) { info!( @@ -219,7 +216,6 @@ pub async fn build( let dag = { let bar_tree_building = progressbars.bar(); - bar_tree_building.set_length(max_packages); let dag = Dag::for_root_package(package.clone(), &repo, &bar_tree_building)?; bar_tree_building.finish_with_message("Finished loading Dag"); dag |