Problem with copr API authentication - resolved

Miroslav Suchý msuchy at redhat.com
Mon Sep 15 07:59:24 UTC 2014


On 09/13/2014 03:56 PM, Mark Reynolds wrote:
> Using "http" instead of "curl" worked:
>
> http --auth <login>:<password> POST
> https://copr.fedoraproject.org/api/coprs/mreynolds/389-ds-base/new_build/
> pkgs='http://mreynolds.fedorapeople.org/389-ds-base-09_12_2014-1.fc20.src.rpm'
>
> If there's a different preferred way to post srpm's I would be interested to hear about it.
>
> Thanks,
> Mark

If you are on command line, then preffered way is copr-cli(1) [1] and if you want to use it in python scripts, then 
there is package python-copr [2], which contains python bindings to interact with Copr.

[1] https://apps.fedoraproject.org/packages/copr-cli
[2] http://python-copr.readthedocs.org/en/latest/

-- 
Miroslav Suchy, RHCE, RHCDS
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys


More information about the copr-devel mailing list