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
Mike McLean
b2bfc28c86
don't warn at load time if krbV module is missing
2017-06-01 09:39:25 +02:00
Mike McLean
560dddd22f
use_old_ssl is only supported on python2
2017-06-01 09:39:25 +02:00
Mike McLean
08d7abd2ab
use bytes for finding \0 in file data
2017-06-01 09:39:24 +02:00
Mike McLean
ff6fc4aa77
header magic is bytes
2017-06-01 09:39:24 +02:00
Mike McLean
a47eb50a34
__ord -> _ord
2017-06-01 09:39:24 +02:00
Tomas Kopecek
e9a536ae07
str/bytes in rpm headers
2017-06-01 09:39:24 +02:00
Tomas Kopecek
ed6800d613
bytes in rpm headers
2017-06-01 09:39:24 +02:00
Tomas Kopecek
c0fccab2b7
correct sort() usage
2017-06-01 09:39:24 +02:00
Tomas Kopecek
cab2c7b4ea
return rpm headers as string instead of bytes
2017-06-01 09:39:23 +02:00
Tomas Kopecek
7d277a8ad5
urllib changes
2017-06-01 09:39:23 +02:00
Tomas Kopecek
0c0cf92b4c
PythonImportError
2017-06-01 09:39:23 +02:00
Tomas Kopecek
2c8a4d332e
python-modernize -f libmodernize.fixes.fix_int_long_tuple
2017-06-01 09:39:23 +02:00
Tomas Kopecek
a4a1536a03
python-modernize -f libmodernize.fixes.fix_file
2017-06-01 09:39:22 +02:00
Tomas Kopecek
68bf19c739
python-modernize -f libmodernize.fixes.fix_dict_six
2017-06-01 09:39:22 +02:00
Tomas Kopecek
6a0a5a232b
python-modernize -f libmodernize.fixes.fix_basestring
2017-06-01 09:39:22 +02:00
Tomas Kopecek
1220008f8f
python-modernize -f lib2to3.fixes.fix_except
2017-06-01 09:39:22 +02:00
Tomas Kopecek
b1da150c01
python-modernize -f libmodernize.fixes.fix_imports_six
2017-06-01 09:39:21 +02:00