Bug 2151239 - RFE: Add --rpms option to download only rpms via download-build
Summary: RFE: Add --rpms option to download only rpms via download-build
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Copr
Classification: Community
Component: cli
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Copr Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-12-06 13:02 UTC by Jitka Plesnikova
Modified: 2023-02-09 12:17 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-02-09 12:17:52 UTC
Embargoed:


Attachments (Terms of Use)

Description Jitka Plesnikova 2022-12-06 13:02:25 UTC
When I run 'copr download-build BUILD_ID', it downloaded lots of files:

$ ls centos-stream+epel-next-9-x86_64/ 
backend.log.gz            configs.tar.gz                            results.json
build-05088644.rsync.log  hw_info.log.gz                            root.log.gz
builder-live.log.gz       index.html                                state.log.gz
build.info                perl-srpm-macros-epel-1-1.el9.noarch.rpm  success
build.log.gz              perl-srpm-macros-epel-1-1.el9.src.rpm     var
chroot_scan               perl-srpm-macros-epel.spec

Most of them I usually don't need. 

Would it be possible to add the option '--rpms' to the action 'download-build'?
This option would only allow *.rpm files to be downloaded.

Another way could be to have an option that would define a regular expression (e.g. *.rpm, *.log.gz) on the basis of which it would be determined which files should be downloaded.

Comment 1 Jakub Kadlčík 2022-12-12 21:56:40 UTC
Hello Jitka,
thank you for the feedback.

I created a PR: https://github.com/fedora-copr/copr/pull/2437


Note You need to log in before you can comment on or make changes to this bug.