Bug 1696468 - RFE: build-and-download command
Summary: RFE: build-and-download command
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: copr-cli
Version: 29
Hardware: All
OS: All
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Suchý
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-04 22:07 UTC by Van de Bugger
Modified: 2019-04-15 06:02 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2019-04-15 06:02:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Van de Bugger 2019-04-04 22:07:49 UTC
Version-Release number of selected component (if applicable):

copr-cli-1.78-1.fc29.noarch


Description of problem:
=======================

I want to build a source rpm in COPR *and* download binary rpms from COPR to the local system. I can easily build a source rpm with copr tool:

$ copr build USER/PROJECT SRPM

copr tool has a command to download the build, but I have to specify build id in order to download the build:

$ copr download-build BUILD-ID

To find out BUILD-ID, I have to parse "copr build" output, it is not convenient. It would be nice if copr tool has build-and-download command, e. g.:

$ copr build-and-download USER/PROJECT SRPM

Alternatively, build command can save build id in a file, so it can be used without parsing the command output, e. g.:

$ copr build --save-build-id-to-file=id.txt USER/PROJECT SRPM

so the next command could be:

$ copr download-build $(<id.txt)

Comment 1 Jakub Kadlčík 2019-04-05 08:06:32 UTC
Thank you for the feedback,


> Alternatively, build command can save build id in a file, so it can be used without parsing the command output, e. g.:


Similar RFE was already discussed in this issue https://pagure.io/copr/copr/issue/224 but wasn't implemented yet. You may want to join the discussion.

Comment 2 Pavel Raiskup 2019-04-15 06:02:58 UTC
Agreed, I interlinked the upstream issue too and we can move there then, to 
avoid duplicate reports.  Thanks for the report!


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