arguments for koji api "createEmptyBuild"

Eric Zhong ericiszhongwenjia at gmail.com
Wed Apr 6 02:12:26 UTC 2011


Version be treated as a integer!!!
How to give a integer to koji as string ???
Is it a bug of koji ???
Thanks.

[zhongwenjia at build ~]$ koji call createEmptyBuild nvidia 1 1.3 None
Fault: <Fault 1: "<class 'pg.DatabaseError'>: error 'ERROR:  operator does
not exist: text = integer\nLINE 2:     WHERE pkg_id=9170 AND version=1 AND
release='1.3'\n                                         ^\nHINT:  No
operator matches the given name and argument type(s). You might need to add
explicit type casts.\n' in 'SELECT id,state,task_id FROM build\n    WHERE
pkg_id=9170 AND version=1 AND release='1.3'\n    FOR UPDATE'">

[zhongwenjia at build ~]$ koji call createEmptyBuild nvidia 1.0 1.3 None
18340





2011/4/4 Mike McLean <mikem at redhat.com>

> On 04/02/2011 01:55 AM, Eric Zhong wrote:
> > if version is a number , not string , how to do it ?
> > what is epoch argument ? Default is NULL. How to give a NULL value ?
>
> Epoch values must be integer or null. When using the call command, you
> can specify a python None value (which maps to null in the db) by name.
>
> E.g.
> # koji call createEmptyBuild nvidia 1 1.3 None


> --
> buildsys mailing list
> buildsys at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/buildsys
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.fedoraproject.org/pipermail/buildsys/attachments/20110406/a975d9ce/attachment.html 


More information about the buildsys mailing list