summaryrefslogtreecommitdiffstats
path: root/src/commands
AgeCommit message (Collapse)Author
2021-12-02Merge branch 'optimize-mass-download'HEADmasterMatthias Beyer
2021-12-02Fix: Increase bar length when adding downloadMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Add missing closing parenMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Introduce semaphore for max of 100 concurrent downloadsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Optimize: Do not increase the download counter too soonMatthias Beyer
Because if the check fails, we don't have to do this work actually. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Optimize: Write bytes to disk and increase statusbar in parallelMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Do not finish download twiceMatthias Beyer
The calling function does this already. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Add doc for helper typeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Outsource "source download" subcommand implMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Move source command implementation to submoduleMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Add progress wrapperMatthias Beyer
When creating only one progress bar for all downloads, we still want to know how many downloads are happening and the remaining number of bytes to be received. This patch implements a ProgressWrapper that synchronizes between the download tasks and the progress bar. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Remove multiple progress when downloadingMatthias Beyer
This patch removes the multiple progress bars when downloading packages, and instead moves to a single progress bar, because downloading (for example) 50 packages at once resulted in an unusable progress bar list. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-12-02Fix: Use already existing response type to get byte stream, instead of ↵Matthias Beyer
starting new GET request Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-19Fix error/info messages for binary nameMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-19Update Copyright string to 2020-2022Matthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-12Merge branch 'source-download-timeout' into nextMatthias Beyer
2021-11-11Format listed jobs timestamps without millisecondsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-11-11Add support for timeout in source download subcommandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-12Rewrite to be more idomaticMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-10-12Late error reporting in release commandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17Merge branch 'fix-release'Matthias Beyer
2021-09-17Fix: Delete target path before copying file to itMatthias Beyer
This fixes a bug: If the target file existed, but was created by another user, the tokio::fs::copy() function was not able to overwrite it (only to empty the file). So with this patch, we remove the file before we copy a new file to the target location. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17Fix: Add more error context if release copy procedure failsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-17List commit hash a submit was built from in the "db submit" outputMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add tests for DAG-building with conditional dependencyMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add CLI parameters for tree-of subcommand to add condition-checking dataMatthias Beyer
This patch adds parameters for the tree-of subcommand which can be used to change the package-DAG-building based on conditional requirements. If a package has a dependency-condition that only includes a dependency if there is a certain image used to build, the "image" parameter can be used to inspect the package tree (DAG) build with that image in mind. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-16Add passing of data for condition-checkMatthias Beyer
This patch extends the interface for building the package DAG with a parameter for the data that is required to check conditions for conditional dependencies. A "DTO" type is added for this data. The actual condition-checking is not implemented in this patch. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-09Merge branch 'rewrite-find-artifact'Matthias Beyer
2021-09-09Merge branch 'submits-with-pkg-name-version'Matthias Beyer
2021-09-09Add --image flag to "db submits" command for filtering for a specific imageMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-09Add package name/version output in "db submits" commandMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-06Add CLI option to call find-artifacts subcommand with filter for imageMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-09-06Rewrite interface for finding artifacts with builderMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-08-17Merge branch 'revert-spinner-db-connecting'Matthias Beyer
2021-08-17Merge branch 'submits-for-commit'Matthias Beyer
2021-08-17Merge branch 'verify-multi'Matthias Beyer
2021-08-17Revert "Add spinner for establishing database connection"Matthias Beyer
This reverts commit ab04d88ae84c33f3577870c10378f0166adf27bc. Having a progress bar for establishing the database connection was just too much noise visually. Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-08-17Add option to get submits for a specific commitMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net> Tested-by: Matthias Beyer <matthias.beyer@atos.net>
2021-08-16Add option to verify packages by name regexMatthias Beyer
This patch adds a feature so that we can verify sources for all packages matching a regex. For example butido source verify --matching "perl5.34.0-.*" for verifying all packages where their name matches "perl5.34.0-.*". Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-08-16Add option to download packages by name regexMatthias Beyer
This patch adds a feature so that we can download sources for all packages matching a regex. For example butido source download --matching "perl5.34.0-.*" for downloading all packages where their name matches "perl5.34.0-.*". Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-08-12Fix clippy: Replace map-collect-to-result with try_for_each()Matthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-08-12Fix clippy: Remove unnecessary return keywordMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-08-12Fix clippy: Remove needless borrowsMatthias Beyer
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2021-07-27Merge branch 'download-redirect-follow'Matthias Beyer
2021-07-27Merge branch 'parallelize-package-print-preparation'Matthias Beyer
2021-07-27Merge branch 'optional-dag-loading-progress'Matthias Beyer
2021-07-27Merge branch 'endpoint-images'Matthias Beyer
2021-07-27Merge branch 'connecting-spinner'Matthias Beyer
2021-07-21Refactor: Move helper fn to in outermost scopeMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
2021-07-21Sort importsMatthias Beyer
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>