Commit graph

1070 commits

Author SHA1 Message Date
Tomas Kopecek
0b9437c723 use with_owners=False 2021-04-19 15:15:53 +02:00
Jana Cupova
508b7aa8cd unify warn messages
Fixes: https://pagure.io/koji/issue/2795
2021-04-19 15:14:28 +02:00
Tomas Kopecek
855bc89ca3 cli: multicalls for write-signed-rpm
Fixes: https://pagure.io/koji/issue/2807
2021-04-19 15:12:22 +02:00
Jana Cupova
0c6f43a9a8 cli: mock-config check arch
Fixes: https://pagure.io/koji/issue/2640
2021-04-19 15:11:03 +02:00
Jana Cupova
8b1fbc45be cli: list-builds sort-key warning
Fixes: https://pagure.io/koji/issue/2587
Fixes: https://pagure.io/koji/issue/2588
2021-04-19 15:10:24 +02:00
Tomas Kopecek
cac56b5014 fix flake8 2021-04-12 15:11:22 +02:00
Tomas Kopecek
5006625f06 cli: fix multicall usage in list_hosts
Related: https://pagure.io/koji/issue/2497
2021-04-08 14:22:37 +02:00
Jana Cupova
42546751be Fix list-hosts and hostinfo for older hub
Fixes: https://pagure.io/koji/issue/2497
2021-04-08 12:05:39 +02:00
Jana Cupova
b9f261d8de cli: buildinfo returns error for non exist build
Fixes: https://pagure.io/koji/issue/2762
2021-03-29 11:24:26 +02:00
Jana Cupova
9dc0efd476 api getLastHostUpdate returns timestamp
fixes: https://pagure.io/koji/issue/2497
2021-03-29 11:23:06 +02:00
Ken Dreyer
8d0b4bc618 cli: catch koji.ParameterError in list_task_output_all_volumes
When we send an RPC with a parameter that the hub does not understand,
we get a koji.ParameterError.

Update list_task_output_all_volumes() to catch the specific error we
expect here.

The purpose of this change is to make the code easier to understand.
2021-03-25 13:59:59 +01:00
Tomas Kopecek
7333a8e174 cli: use multicall for cancel command
Fixes: https://pagure.io/koji/issue/2607
2021-03-22 15:12:01 +01:00
Jana Cupova
de09faca6c cli: hostinfo with non-exist host
Fixes: https://pagure.io/koji/issue/2763
2021-03-18 10:50:36 +01:00
Jana Cupova
0c9c8c6a81 cli: rpminfo with non-exist rpm
Fixes: https://pagure.io/koji/issue/2643
2021-03-17 10:11:03 +01:00
Jana Cupova
e784373000 Unify error messages
Unify error messages for CLI

Unify error messages for hub

Fixes: https://pagure.io/koji/issue/2720
2021-03-16 08:43:33 +01:00
Tomas Kopecek
29a34f31a5 cli: show connection exception
For anonymous calls (whose use ensure_connection) is now shown also
original exception if --debug is specified.

Fixes: https://pagure.io/koji/issue/2592
2021-03-10 15:31:11 +01:00
Jana Cupova
ffc9bedd00 cli: list-untagged returns error non-exist package
When package is not existing, list-untagged returns an error.

Fixes: https://pagure.io/koji/issue/2601
2021-03-10 14:38:39 +01:00
Tomas Kopecek
b6bdad7d50 cli: fix help message formatting
Related: https://pagure.io/koji/issue/2718
2021-03-05 15:36:12 +01:00
Tomas Kopecek
1dd53ab725 cli: emphasize --noauth option for 'call'
Fixes: https://pagure.io/koji/issue/2718
2021-03-03 15:58:45 +01:00
Mike McLean
5bc690c4ea support modules and other btypes in download-build
Fixes https://pagure.io/koji/issue/2677
2021-03-03 14:11:20 +01:00
lrossett
4465be89e7 adding check for license header 2021-02-23 13:15:07 +01:00
Jana Cupova
5f23b8e814 cli: list-history error non-exist channel, host
When channel or host are non-existing, list-history returns error.

Fixes: https://pagure.io/koji/issue/2599
2021-02-23 13:09:59 +01:00
Jana Cupova
dc5230c4ba cli: mock-config error for non existing buildroot
When buildroot is not existing, mock-config returns an error.

Fixes: https://pagure.io/koji/issue/2642
2021-02-22 13:52:19 +01:00
lrossett
1014ad08b7 adding invalid target name error message 2021-02-22 13:38:07 +01:00
Tomas Kopecek
c6e69b4f8b backport py27 compatible file open with encoding
client and builder needs to run on py27 which doesn't support
open(encoding='utf-8')

Related: https://pagure.io/koji/issue/2641
2021-02-16 14:13:03 +01:00
Mike McLean
899c17cc53 don't assume that the hub will report arches for external repos
Fixes https://pagure.io/koji/issue/2681
2021-02-08 09:56:38 +01:00
Ken Dreyer
659a450bc1 cli: support download-build --type=remote-sources
Prior to this change, "koji download-build --type=remote-sources" failed
with an AssertionError.

Add support for OSBS's cachito remote-sources btype.
2021-02-02 14:45:30 +01:00
Tomas Kopecek
d797573faa readFullInheritance stops/jumps deprecation
Fixes: https://pagure.io/koji/issue/2606
2021-02-01 15:15:54 +01:00
Mike McLean
c03bf228c5 rename arg 2021-01-26 14:09:48 +01:00
Mike McLean
1864078973 history query by key
Fixes: https://pagure.io/koji/issue/2590
2021-01-26 14:09:48 +01:00
Tomas Kopecek
96ae0ecef5 explicit encoding for text file operations
Fixes: https://pagure.io/koji/issue/2641
2021-01-26 13:36:25 +01:00
Tomas Kopecek
932994f720 update help text 2021-01-25 13:31:51 +01:00
Tomas Kopecek
e63508f8a0 cli: hide import-sig --write option
It is no more used, hide it from the user.

Fixes: https://pagure.io/koji/issue/2620
2021-01-19 13:37:56 +01:00
Tomas Kopecek
b3732c508b lower batches in clone-tag multicalls
Fixes: https://pagure.io/koji/issue/2616
2021-01-13 16:17:10 +01:00
Tomas Kopecek
ae6d61a15f cli: return error if add/remove-tag-inheritance can't be applied
Fixes: https://pagure.io/koji/issue/2604
2021-01-13 14:32:28 +01:00
Ken Dreyer
8321df159b cli: raise NotImplementedError with btype name
Print the exact unhandled btype name to the user, so it's clearer why
we're exiting early here.
2021-01-12 13:17:42 +01:00
Tomas Kopecek
866c81cb63 cli: some options are not supplied in all _list_tasks calls
Fixes: https://pagure.io/koji/issue/2585
2021-01-04 10:42:34 +01:00
Tomas Kopecek
254c766b1f cli: create after/before OptionParser helper 2020-12-01 14:40:51 +01:00
Tomas Kopecek
0256282a84 cli: list-task --after/--before/--all
allow querying for closed tasks

Fixes: https://pagure.io/koji/issue/2565
2020-12-01 13:02:25 +01:00
Michal Privoznik
66ba134859 Install into /usr/lib rather than /usr/lib64/
In koji-1.22.0-129-g0ef3c751 I've changed the way how
site-packages directory is obtained. What I did not realize back
then is there can be multilib systems which will not search for
packages in /usr/lib64. But 64bit systems do look into /usr/lib.
Therefore, let's pick the location where both systems work.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1894261
Fixes: #2578
https://pagure.io/koji/issue/2578
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
2020-11-27 10:00:52 +01:00
Tomas Kopecek
24bd694865 external repos can have specified arch list
Fixes: https://pagure.io/koji/issue/2538
2020-11-24 13:56:29 +01:00
Tomas Kopecek
4fa9d54a7e cli: list-hosts can display description/comment
Fixes: https://pagure.io/koji/issue/2553
2020-11-23 14:08:50 +01:00
Tomas Kopecek
0f56d39487 remove deprecated --ca option
Fixes: https://pagure.io/koji/issue/2192
2020-11-23 11:03:38 +01:00
lrossett
3c1c1bd5c4 fix not found build id error for list-builds 2020-11-23 09:12:44 +01:00
Yu Ming Zhu
23c1ee9f44 catch the exception on old hub 2020-11-17 23:16:00 +00:00
Yu Ming Zhu
3f57163c3f hub: [listBuilds] add nvr glob pattern support
fixes: #2554

--pattern is also added in list-builds command
2020-11-17 22:59:32 +00:00
Tomas Kopecek
7f44d1f7a2 cli: allow removal of unused external repo even with --alltags
Fixes: https://pagure.io/koji/issue/2061
2020-11-12 15:49:30 +01:00
Brendan Reilly
b97813d6e2 Add option to use repos from kickstart for livemedia builds
Fixes: https://pagure.io/koji/issue/2260
2020-11-12 15:48:47 +01:00
Brendan Reilly
c62f15172f Add nomacboot option for spin-livemedia
Fixes: https://pagure.io/koji/issue/2259
2020-10-27 14:37:01 +01:00
Tomas Kopecek
2518e8106f cli: fix tests
Related: https://pagure.io/koji/issue/1870
2020-10-06 14:58:15 +02:00