Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Build System (http://www.linux-archive.org/fedora-build-system/)
-   -   koji add-group? (http://www.linux-archive.org/fedora-build-system/84652-koji-add-group.html)

Paul B Schroeder 05-08-2008 09:09 PM

koji add-group?
 
Hmm.. Strange.. I don't seem to have the add-group command (see
further below). I had to do this via psql to be able to "koji
add-group-pkg":

koji=> insert into groups (name) values('build');
INSERT 0 1
koji=> select * from groups;
id | name
----+-------
1 | build
(1 row)
koji=> insert into group_config (group_id, tag_id, display_name)
values(1, 2, 'build');
INSERT 0 1
koji=> select * from group_config;
group_id | tag_id | blocked | exported | display_name | is_default |
uservisible | description | langonly | biarchonly | create_event |
revoke_event | active
----------+--------+---------+----------+--------------+------------+-------------+-------------+----------+------------+--------------+--------------+--------
1 | 2 | f | t | build | |
| | | | 3413 | | t
(1 row)

koji=> select * from group_package_listing;
group_id | tag_id | package | blocked | type | basearchonly |
requires | create_event | revoke_event | active
----------+--------+---------+---------+---------+--------------+----------+--------------+--------------+--------
1 | 2 | bash | f | default | |
| 3414 | | t
(1 row)


----------------------------------------------


[root@koji koji]# rpm -q koji
koji-1.2.2-2.fc8

[root@koji koji]# koji add-group --help
Available commands:
build Build a package from source
buildinfo Print basic information about a build
cancel Cancel tasks and/or builds
chain-build Build one or more packages from source
download-build Download a built package
help List available commands
latest-pkg Print the latest packages for a tag
list-api Print the list of XML-RPC APIs
list-buildroot List the rpms used in or built in a
buildroot
list-groups Print the group listings
list-hosts Print the host listing
list-pkgs Print the package listing for tag or for
owner
list-tag-history Print a history of tag operations
list-tag-inheritance Print the inheritance information for a tag
list-tagged List the builds or rpms in a tag
list-tags Print the list of tags
list-targets List the build targets
list-tasks Print the list of tasks
list-untagged List untagged builds
mock-config Create a mock config
move-pkg 'Move' one or more packages between tags
resubmit Retry a canceled or failed task, using the
same parameter as the original task.
rpminfo Print basic information about an RPM
show-groups Show groups data for a tag
tag-pkg Apply a tag to one or more packages
taginfo Print basic information about a tag
taskinfo Show information about a task
untag-pkg Remove a tag from one or more packages
watch-logs Watch logs in realtime
watch-task Track progress of particular tasks
(Type "koji --help" for help about global options
or "koji <command> --help" for help about a particular command's
options.)
Usage: koji [global-options] command [command-options-and-arguments]

koji: error: Unknown command: add_group


--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Mike Bonnet 05-08-2008 10:16 PM

koji add-group?
 
On Thu, 2008-05-08 at 16:09 -0500, Paul B Schroeder wrote:
> Hmm.. Strange.. I don't seem to have the add-group command (see
> further below). I had to do this via psql to be able to "koji
> add-group-pkg":
>
> koji=> insert into groups (name) values('build');
> INSERT 0 1
> koji=> select * from groups;
> id | name
> ----+-------
> 1 | build
> (1 row)
> koji=> insert into group_config (group_id, tag_id, display_name)
> values(1, 2, 'build');
> INSERT 0 1
> koji=> select * from group_config;
> group_id | tag_id | blocked | exported | display_name | is_default |
> uservisible | description | langonly | biarchonly | create_event |
> revoke_event | active
> ----------+--------+---------+----------+--------------+------------+-------------+-------------+----------+------------+--------------+--------------+--------
> 1 | 2 | f | t | build | |
> | | | | 3413 | | t
> (1 row)
>
> koji=> select * from group_package_listing;
> group_id | tag_id | package | blocked | type | basearchonly |
> requires | create_event | revoke_event | active
> ----------+--------+---------+---------+---------+--------------+----------+--------------+--------------+--------
> 1 | 2 | bash | f | default | |
> | 3414 | | t
> (1 row)
>
>
> ----------------------------------------------
>
>
> [root@koji koji]# rpm -q koji
> koji-1.2.2-2.fc8
>
> [root@koji koji]# koji add-group --help
> Available commands:
> build Build a package from source
> buildinfo Print basic information about a build
> cancel Cancel tasks and/or builds
> chain-build Build one or more packages from source
> download-build Download a built package
> help List available commands
> latest-pkg Print the latest packages for a tag
> list-api Print the list of XML-RPC APIs
> list-buildroot List the rpms used in or built in a
> buildroot
> list-groups Print the group listings
> list-hosts Print the host listing
> list-pkgs Print the package listing for tag or for
> owner
> list-tag-history Print a history of tag operations
> list-tag-inheritance Print the inheritance information for a tag
> list-tagged List the builds or rpms in a tag
> list-tags Print the list of tags
> list-targets List the build targets
> list-tasks Print the list of tasks
> list-untagged List untagged builds
> mock-config Create a mock config
> move-pkg 'Move' one or more packages between tags
> resubmit Retry a canceled or failed task, using the
> same parameter as the original task.
> rpminfo Print basic information about an RPM
> show-groups Show groups data for a tag
> tag-pkg Apply a tag to one or more packages
> taginfo Print basic information about a tag
> taskinfo Show information about a task
> untag-pkg Remove a tag from one or more packages
> watch-logs Watch logs in realtime
> watch-task Track progress of particular tasks
> (Type "koji --help" for help about global options
> or "koji <command> --help" for help about a particular command's
> options.)
> Usage: koji [global-options] command [command-options-and-arguments]
>
> koji: error: Unknown command: add_group

That must have been added to koji-1.2.3. You can grab it from
http://koji.fedoraproject.org/koji/buildinfo?buildID=28165 . It should
work fine on F8.


--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list

Mike McLean 05-08-2008 10:22 PM

koji add-group?
 
Paul B Schroeder wrote:

Hmm.. Strange.. I don't seem to have the add-group command (see
further below). I had to do this via psql to be able to "koji
add-group-pkg":


The add-group cli command was added in git almost a year ago. However,
the stock koji build in the F8 repos is really, really old.


As mikeb pointed out you can pull a later koji build from the koji.fp.o.
Optionally, you could just build it yourself from a git clone. If you
don't want /quite/ the bleeding edge, you could build from the
koji-1.2.5-1.fc8 tag.



koji=> insert into groups (name) values('build');
INSERT 0


Even if your cli doesn't have the add-group command, the hub still has
the call. Rather than muck around in the db, you could have just run:


$ koji call groupListAdd <tag> <group>


[root@koji koji]# rpm -q koji
koji-1.2.2-2.fc8


yep. old, old, old.

--
Fedora-buildsys-list mailing list
Fedora-buildsys-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-buildsys-list


All times are GMT. The time now is 10:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.