Ken Dreyer
5704beb99c
cli: document "list-signed" requires filesystem access
...
The "list-signed" command does not work with HTTP (topurl). It only
works with direct filesystem access (topdir).
2022-04-27 10:39:41 +02:00
Jana Cupova
83f17e2892
Skip activate_session when logged
...
Fixes: https://pagure.io/koji/issue/3253
2022-04-19 12:43:24 +02:00
Ken Dreyer
5469452da7
cli: rename "args" var for list-tags command
...
Instead of re-using the "args" variable, name this variable something
more descriptive to reflect that these are tag name patterns.
2022-04-01 13:12:14 -04:00
Jana Cupova
49f5f72a9f
Same format output for list-builroot with verbose for py3/py2
...
Fixes: https://pagure.io/koji/issue/3299
2022-03-24 12:59:58 +01:00
Jana Cupova
d561ded4fa
allow untag-build for blocked packages
...
https://pagure.io/koji/issue/3134
2022-03-21 14:32:23 +01:00
Tomas Kopecek
3ee95baa5f
mock.module_setup_commands tag extra option
...
Fixes: https://pagure.io/koji/issue/2483
2022-02-07 09:33:14 +01:00
Jana Cupova
c0b8223d2c
Remove json check from import-cg CLI
...
Fixes: https://pagure.io/koji/issue/3241
2022-02-03 10:16:08 +01:00
Jana Cupova
1252129136
Add description for permissions
...
Fixes: https://pagure.io/koji/issue/335
2022-01-31 10:21:58 +01:00
Jana Cupova
355c713044
Taginfo page shows packages with/without blocked
...
Fixes: https://pagure.io/koji/issue/1350
2021-12-20 09:08:47 +01:00
Jana Cupova
18b136d386
Remove rename-channel CLI and use editChannel in renameChannel
...
Fixes: https://pagure.io/koji/issue/3035
2021-12-15 15:28:19 +01:00
Jana Cupova
c7fd26aeda
Deprecated remove-channel CLI and removeChannel API
...
Fixes: https://pagure.io/koji/issue/1206
2021-12-15 15:26:11 +01:00
Jana Cupova
5232ea5aa1
error function instead of print with sys.exit in CLI commands
...
Fixes: https://pagure.io/koji/issue/3112
2021-12-15 15:19:18 +01:00
Tomas Kopecek
a3edb7a4b9
Return mistakenly dropped option (--keytab)
...
PR https://pagure.io/koji/pull-request/3051 was wrongly merged
https://pagure.io/koji/c/071533206e6d29f665d7a5864eda75087488a3ce?branch=master
and deleted wrong line. Reverting it.
Fixes: https://pagure.io/koji/issue/3171
2021-12-14 14:16:05 +01:00
Jana Cupova
f528fd9ca4
CLI mock-config: when topdir option, remove topurl value
...
Fixes: https://pagure.io/koji/issue/2675
2021-12-13 17:00:22 +01:00
Jana Cupova
54055c8ed0
Deprecated --paths option in list-buildroot
...
Fixes: https://pagure.io/koji/issue/2473
2021-12-13 16:34:53 +01:00
Yu Ming Zhu
ab87d70d55
PR#3090: Add option for UTC time in list-history
...
Merges #3090
https://pagure.io/koji/pull-request/3090
Fixes : #1136
https://pagure.io/koji/issue/1136
Show koji list-history information in UTC time
2021-11-11 07:49:13 +00:00
Jana Cupova
29ceea4ef0
Fix older hub errors
...
Fixes: https://pagure.io/koji/issue/1401
2021-11-07 09:33:22 +00:00
Ken Dreyer
071533206e
cli: mention --profile in --config help text
...
It's easy for new users to confuse the "--config" and "--profile"
settings.
We want to guide users towards using non-default profile names (eg
"stream" or "cbs", etc) where possible. If a user is pointing at a
non-standard configuration file location, they should really use the
--profile option also to keep their configuration sane.
Update the --help text for the --config option to emphasize the
--profile option.
2021-10-26 11:21:58 +02:00
Jana Cupova
4c68011596
Add option for UTC time in list-history
...
Fixes: https://pagure.io/koji/issue/1136
2021-10-25 15:17:28 +02:00
Jana Cupova
32b5377392
Remove translation stub functions
...
Fixes: https://pagure.io/koji/issue/3072
2021-10-21 13:25:16 +02:00
Ken Dreyer
cfaa6aa7fc
cli: improve help text for add-tag --parent
...
Update the --help text to clarify that the --parent option will add a
parent tag at the highest priority (0).
2021-10-20 11:15:40 -04:00
Tomas Kopecek
ba2e1e520b
basic security checks with bandit
...
Fixes: https://pagure.io/koji/issue/3042
2021-10-20 15:20:14 +02:00
Jana Cupova
74112e804f
method call json default option set up to str
...
Fixed: https://pagure.io/koji/issue/3065
2021-10-19 12:40:56 +02:00
Jana Cupova
d3ef00fff4
Dist-repo with write-signed-rpm option
...
Fixes: https://pagure.io/koji/issue/2806
2021-10-18 13:00:11 +02:00
Tomas Kopecek
0badee262f
listBuilds/list-builds filtering via CG
...
Fixes: https://pagure.io/koji/issue/1401
2021-10-05 12:28:03 +02:00
Tomas Kopecek
3c26e60db4
propagate error in write-signed-copies
...
Fixes: https://pagure.io/koji/issue/3014
2021-10-05 11:08:06 +02:00
Ken Dreyer
6950c65de9
cli: refactor expected NVR comparison
...
Instead of expanding "name"-"version"-"release" twice, expand it once
and assign it to a new "expected_nvr" variable.
This makes it easier to read this complex string handling code.
2021-10-04 09:45:21 +02:00
Yu Ming Zhu
b864f3d440
CLI: [list-tag-inheritance] Clear Error with removed --stop/--jump opts
2021-09-29 10:34:10 +02:00
Patrick Uiterwijk
af25fc2e24
Support packages that are head-signed
...
This supports packages which do not have the RPMv3 signature scheme
(over the full RPM header+payload), but instead only have signatures
over the header (v4 scheme).
For the v4 scheme, the signature is only stored in SIGTAG_RSA (or
SIGTAG_DSA).
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2021-09-15 12:43:06 +02:00
Tomas Kopecek
97503b7492
fix option propagation
2021-09-14 13:26:11 +02:00
Tomas Kopecek
7a4b17005a
expose force_auth in config
2021-09-14 13:26:11 +02:00
Tomas Kopecek
5d86608931
Honour --force-auth for anonymous commands
...
Fixes: https://pagure.io/koji/issue/2657
2021-09-14 13:26:11 +02:00
Ken Dreyer
f6aeec9265
add warnings for remove-sig
...
Update all references to remove-sig to explain that admins should not
normally run this.
2021-09-10 11:13:39 -04:00
Jana Cupova
91ff7f95ae
set-task-priority fix permission error
...
Fixes: https://pagure.io/koji/issue/2969
2021-09-08 17:21:30 +02:00
Jana Cupova
e48d813433
Add all types to docs latest-build and readTaggedBuilds
...
Fixes: https://pagure.io/koji/issue/2953
2021-09-08 17:17:23 +02:00
Jana Cupova
9740c1afd7
Fix list-hosts with show-channels shows * with disabled channels
2021-09-03 14:48:56 +02:00
Jana Cupova
b79f8e0462
Fix disabled and enabled option when empty result
...
Fixes: https://pagure.io/koji/issue/3015
2021-09-03 11:11:32 +02:00
Jana Cupova
43421a8e76
CLI channels, hosts methods works with older hub
...
Fixes: https://pagure.io/koji/issue/2990
2021-08-30 09:24:22 +02:00
Ken Dreyer
0adec2fd38
fix "an user" -> "a user" grammar in help text and errors
2021-08-24 10:54:03 -04:00
Tomas Kopecek
ec70d21c41
fix flake8
2021-08-16 13:52:20 +02:00
Ken Dreyer
241f4874e8
cli: improve help text for download-logs --match
...
Update the --help text to clarify that --match will match log filenames,
not log contents, and the matching algorithm is fnmatch.
2021-08-16 13:51:01 +02:00
Ken Dreyer
0837acdf67
cli: improve help text for download-logs --nvr
...
Explain that the --nvr option is an alternative to simply specifying a
task ID. In particular, this will not download the *build's* logs, just
the task logs for that build.
2021-08-16 13:51:01 +02:00
Ken Dreyer
4878f50fa7
cli: clarify that download-logs operates on tasks
2021-08-16 13:51:01 +02:00
Ken Dreyer
d79b11eabc
cli: remove duplicate download-logs --help text
...
The get_usage_str() helper already adds this global --help message, so
we do not need to add it.
2021-08-16 13:51:01 +02:00
Ken Dreyer
c6ad839942
cli: improve --config and --profile help text
...
Move "--profile" to the top of the argument list so it's easier to see
in --help. Most users should use --profile instead of --config.
Explain what the default --profile value is (it's progname).
Reword the "--config" help text to explain that this overrides a
profile's settings using a separate configuration file.
2021-08-16 13:41:07 +02:00
Mike McLean
6af614b71b
avoid masking hub errors, avoid duplicate check
2021-07-29 08:22:10 -04:00
Mike McLean
d227f0f626
fix unit tests, use error()
2021-07-28 15:22:37 -04:00
Mike McLean
0d815f8969
exit code, --all handling, typo
2021-07-28 13:12:17 -04:00
Jana Cupova
fb8cfc5678
Add delete-rpm-sig CLI and deleteRPMSig hub call
...
Fixes: https://pagure.io/koji/issue/2665
2021-07-21 13:43:09 +02:00
Jana Cupova
bc2a51350d
Enable/disable channel
...
Fixes: https://pagure.io/koji/issue/1851
2021-07-20 10:33:50 +02:00