Commit graph

340 commits

Author SHA1 Message Date
Mike McLean
ae025524ab clean up docstring for multiCall() 2018-06-27 11:34:50 -04:00
Yuming Zhu
60a23818a1 add warning for batch usage in clone-tag 2018-06-27 11:34:50 -04:00
Yuming Zhu
3bddf540b4 set default batch to None and use generator instead of list 2018-06-27 11:34:50 -04:00
Yuming Zhu
073a8bd043 cli: add batch option in multiCall 2018-06-27 11:33:34 -04:00
David Abdurachmanov
5b2014f8c0 Fix use_host_resolv with new mock version (2017 Nov 22+)
The change done in mock on 2017 Nov 22:

    782e150ffda41c55351c56eff6601a2cc1b8e4fe / [RHBZ#1514028]

now requires rpmbuild_networking to be used together with use_host_resolv
otherwise it does not have an affect. While setting up Fedora RISC-V koji
instance we noticed that /etc/resolv.conf was never copied into chroot,
while /ets/hosts was always present.

The following was tested on Fedora RISC-V instance and resolved the original
problem (buildSRPMFromSCM was failing on fedpkg sources as it couldn't
resolve src.fedoraproject.org)

Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-13 12:30:19 -04:00
Mike McLean
024782eacc also forget requests session in _forget() 2018-04-30 16:56:11 -04:00
Tomas Kopecek
1b07d95ccf print debug and error messages to stderr
Fixes: https://pagure.io/koji/issue/671
2018-04-24 17:01:51 -04:00
Mike McLean
c246f719b8 Show the krb principal name in debug log
This may help users realize when they are trying to authenticate
with the wrong ticket.
2018-04-02 16:40:04 -04:00
Tomas Kopecek
2eff45f763 Drop pre-2.6 compat function koji.util._relpath
Fixes: https://pagure.io/koji/issue/818
2018-03-08 10:23:44 -05:00
Mike McLean
3dda2f5dbf handle internal_dev_setup opt earlier 2018-02-28 12:22:05 -05:00
Mike McLean
c3e8a2ecc7 stabilize mock config ordering 2018-02-28 12:22:05 -05:00
Mike McLean
e780a611a6 make internal_dev_setup an option in getMockConfig 2018-02-28 08:19:29 -05:00
Yuming Zhu
16a94a5762 omit the last dot of cname when krb_canon_host=True
fixes: #801
relates: #653
2018-02-28 07:41:19 -05:00
Mike McLean
afd5c88afb adjust error text 2018-02-07 15:55:58 +08:00
Yuming Zhu
0d2588b9ad remove duplicate logging 2018-02-07 15:55:58 +08:00
Yuming Zhu
6c5924b282 replace version comparison with regexp matching 2018-02-07 15:55:58 +08:00
Yuming Zhu
c241d28c25 do not import HTTPKerberosAuth 2018-02-07 15:55:58 +08:00
Yuming Zhu
af1a85841b check python-requests-kerberos version before gssapi login
relates: #747
2018-02-07 15:55:58 +08:00
Tomas Kopecek
8f22069fda drop old ssl support + compatrequests
Koji now uses ssl via python-requests

 - use_old_ssl option is removed
 - koji.ssl library removed
 - compatrequests dropped

Related: https://pagure.io/koji/issue/467
2018-01-03 12:47:03 +01:00
Mike McLean
12f156d1f3 fix exception syntax 2017-12-07 18:16:03 -05:00
Patrick Uiterwijk
fbbd5cd168 Fix resetting the environment
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-12-07 18:16:03 -05:00
Mike McLean
66e42e9bfc fix another bare exception 2017-12-07 18:16:03 -05:00
Mike McLean
960c1f861d be a little more paranoid about undoing opts/environ mangling 2017-12-07 18:16:03 -05:00
Mike McLean
64375197ff avoid bare exception and add some debug logging 2017-12-07 18:16:03 -05:00
Patrick Uiterwijk
7a2f2a7d4b Implement support for keytab in gssapi codepaths
This had been a TODO that until now wasn't critical since python2 would fall back to krbV.
For python3, we only have gssapi, so implement keytabs and ccache for gssapi.

Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2017-12-07 18:16:03 -05:00
Mike McLean
8a4c75ee7f rename fixPrint->_fix_print and add a docstring 2017-12-06 13:32:51 +08:00
Yuming Zhu
3464adae2e cli: fix changelog encode for PY3
relates [issue#577](https://pagure.io/koji/issue/577)
2017-12-06 13:32:29 +08:00
Yuming Zhu
5c11e60293 fix dict comprehension on py2.6 2017-11-09 17:47:36 -05:00
Yuming Zhu
14a24abbde make grab_session_options to accept dict directly
fixes #663
2017-11-09 17:47:36 -05:00
Mike McLean
edda41100c krb_canon_host option to canonicalize hostname via dns 2017-10-27 15:32:25 -04:00
Tomas Kopecek
470addae97 fix formatTime for DateTime
Related: https://pagure.io/koji/issue/623
2017-10-06 17:10:12 -04:00
Mike McLean
204a1969e1 use_old_ssl is deprecated 2017-09-22 11:04:35 -04:00
Mike McLean
ea89245352 allow profiles to request a specific python version 2017-09-18 16:26:55 -04:00
Mike McLean
3f0d107c2e handle LONGFILESIZES rpm header field 2017-09-08 16:33:09 -04:00
Mike McLean
062a38c1b6 handle all long rpm size headers 2017-09-08 16:33:09 -04:00
Mike McLean
be2fae90ae move custom xmlrpc marshaller to its own file 2017-08-25 16:48:02 -04:00
Mike McLean
2865f2421b avoid using encode_int in some of the client code 2017-08-25 16:48:02 -04:00
Mike McLean
ab48fa80b2 move xmlrpc marshaller into lib and use i8 for large ints 2017-08-25 16:48:02 -04:00
Tomas Kopecek
6930880480 check RPMTAG_LONGSIZE is RPMTAG_SIZE is null
Related: https://pagure.io/koji/issue/541
2017-08-08 12:13:06 -04:00
Patrick Uiterwijk
56b023b158 Error out if krbV is unavailable and gssapi did not work
In python3, krbV is unavailable, which means that we should not stay
silent if gssapi login failed.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-08 11:09:52 -04:00
Igor Gnatenko
eea35fa5a6 make is_debuginfo() one-line
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Igor Gnatenko
785e23b2c0 use if 'x' in s instead of str.find()
It's more readable.

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Igor Gnatenko
7a3bf2791e handle debugsource same way as debuginfo packages
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2017-08-03 12:14:50 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Tomas Kopecek
d17157cf33 drop unused add_db_logger call and db table
Fixes: https://pagure.io/koji/issue/469
2017-07-06 11:15:00 -04:00
Mike McLean
94f116e898 watch-logs: fix py3 encoding issues 2017-06-16 10:16:07 +02:00
Tomas Kopecek
df6aadec59 remove CLI plugins config options 2017-06-13 14:53:39 +02:00
Tomas Kopecek
c15c553048 fix entry path 2017-06-13 11:42:04 +02:00
Mike McLean
0661e0e3eb Work around coverage bug in py3 on Fedora 2017-06-01 09:39:25 +02:00
Tomas Kopecek
95f012b27d fixEncoding tests 2017-06-01 09:39:25 +02:00