Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1292033 - copr-cli ignores multiple package arguments if the first is a local file
Summary: copr-cli ignores multiple package arguments if the first is a local file
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Copr
Classification: Community
Component: cli
Version: unspecified
Hardware: All
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: clime
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-16 09:45 UTC by Daniel Miranda
Modified: 2016-05-16 22:25 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-16 22:25:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Daniel Miranda 2015-12-16 09:45:28 UTC
Description of problem:

Running `copr-cli build` with multiple package arguments will only build the first one and ignore the others if the first is a local path. 


Version-Release number of selected component (if applicable):

copr-cli-1.45-1.fc22


How reproducible:

Always


Steps to Reproduce:

Run `copr-cli build user/project /local/package1.src.rpm /local/package2.src.rpm` or
Run `copr-cli build user/project /local/package1.src.rpm http://example.com/package2.src.rpm`

Actual results:

Only the first package is built.


Expected results:

All listed packages are built, and the command only completes when all the builds are complete.

Comment 1 clime 2016-01-28 09:25:31 UTC
You cannot combine local file paths and URLs in one command line and local-file builds are limited to the first specified PKG. This limitation comes from the COPR API.

I updated man pages to say this in commit 00dbfbd456

In frontend, the two ways to corresponding ways to submit a new build are:
"Build from URLs" and "Upload SRPM". Please, if you can, upload the file somewhere to use just URLs.

Comment 2 Daniel Miranda 2016-01-28 11:09:31 UTC
Fair enough. It would be nice if copr-cli rejected the command when such an invalid combination of sources was provided, instead of just discarding some of the arguments silently though.

If it matters, my use case was automating building some custom packages that also have custom packages as build dependencies. I wanted to build them in stages, such that the only packages to constitute a later stage are ones that need deps to be fulfilled by earlier stages.
So one command would build all the packages in one stage at once however COPR would find best  - hopefully in parallel - and wait for them *all* to finish. But that is also reasonably easy to achieve using something like GNU parallel, which is probably what I'll do.

Comment 3 Fedora Update System 2016-02-03 14:07:41 UTC
python-copr-1.65-1.fc23 copr-cli-1.47-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-b8100b8c0e

Comment 4 Fedora Update System 2016-02-03 14:07:43 UTC
python-copr-1.65-1.el6 copr-cli-1.47-1.el6 has been submitted as an update to Fedora EPEL 6. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0b304178f6

Comment 5 Fedora Update System 2016-02-03 14:08:06 UTC
python-copr-1.65-1.el7 copr-cli-1.47-1.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-c11c38ade2

Comment 6 Fedora Update System 2016-02-03 14:08:08 UTC
python-copr-1.65-1.fc22 copr-cli-1.47-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1fc476e069

Comment 7 Fedora Update System 2016-02-03 22:19:26 UTC
copr-cli-1.47-1.el6, python-copr-1.65-1.el6 has been pushed to the Fedora EPEL 6 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-0b304178f6

Comment 8 Fedora Update System 2016-02-03 22:23:14 UTC
copr-cli-1.47-1.el7, python-copr-1.65-1.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2016-c11c38ade2

Comment 9 Fedora Update System 2016-02-03 22:59:23 UTC
copr-cli-1.47-1.fc23, python-copr-1.65-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-b8100b8c0e

Comment 10 Fedora Update System 2016-02-03 23:25:12 UTC
copr-cli-1.47-1.fc22, python-copr-1.65-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1fc476e069

Comment 11 Miroslav Suchý 2016-02-04 08:58:11 UTC
This fix has been just deployed to production.

Comment 12 Fedora Update System 2016-02-07 05:23:04 UTC
copr-cli-1.47-1.fc23, python-copr-1.65-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2016-02-20 22:58:00 UTC
copr-cli-1.47-1.el7, python-copr-1.65-1.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2016-02-20 23:55:03 UTC
copr-cli-1.47-1.el6, python-copr-1.65-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report.

Comment 15 Fedora Update System 2016-05-05 07:01:20 UTC
python-copr-1.68-1.fc22 copr-cli-1.50-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2016-83199bf70e

Comment 16 Fedora Update System 2016-05-06 09:23:00 UTC
copr-cli-1.50-1.fc22, python-copr-1.68-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-83199bf70e

Comment 17 Fedora Update System 2016-05-16 22:24:46 UTC
copr-cli-1.50-1.fc22, python-copr-1.68-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.


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