Commit graph

282 commits

Author SHA1 Message Date
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
Tomas Kopecek
73356b50e5 fix relative imports 2017-06-01 09:39:21 +02:00
Tomas Kopecek
c579e36489 python-modernize -f libmodernize.fixes.fix_unicode_type 2017-06-01 09:39:21 +02:00
Tomas Kopecek
0eaf3349c4 python-modernize -f libmodernize.fixes.fix_zip 2017-06-01 09:39:21 +02:00
Tomas Kopecek
7f946b37be python-modernize -f libmodernize.fixes.fix_xrange_six 2017-06-01 09:39:21 +02:00
Tomas Kopecek
a54397adc6 propagate parameters recursively 2017-05-17 13:11:22 -04:00
Tomas Kopecek
eaae5b3212 don't remove nonprintable characters by default 2017-05-17 13:11:22 -04:00
Tomas Kopecek
a21d4bb7e3 less restrictive filter 2017-05-17 13:11:22 -04:00
Tomas Kopecek
993b2660da remove non-printable characters in fixEncoding
Some real-world changelogs contains non-printable characters or invalid
unicode ones. xmlrpc fails on such strings, so we sanitize changelog
strings before passing it to client.

Related: https://pagure.io/koji/issue/349
2017-05-17 13:11:22 -04:00
Tomas Kopecek
6b18dff97a remove release from User-Agent header
Related: https://pagure.io/koji/issue/392

It's unnecessary detail here, let's leave it as major version value only
for now.
2017-04-25 14:30:23 +02:00
Tomas Kopecek
c769477d94 raise error on non-existing profile 2017-04-21 16:34:10 -04:00
Mike McLean
76dc071fe8 more tests 2017-04-21 16:20:24 -04:00
Mike McLean
a4131e354c apply get_header_field enhancements from kobo and update unit test 2017-04-21 16:20:24 -04:00
Mike McLean
0189cf98ea typo 2017-04-05 12:29:23 -04:00
Mike McLean
649a6e710f for volume compat fixes 2017-04-04 21:09:24 -04:00
Mike McLean
5231105478 only pass volume opt to downloadTaskOutput if needed
Fixes #368
2017-04-04 17:50:55 -04:00
Mike McLean
8346a60976 more renaming 2017-03-30 09:47:20 -04:00
Mike McLean
c86b5c3ac0 first stab at renaming signed repos to dist repos
sed -i -e 's/signed\(.\?[Rr]epo\)/dist\1/g'
sed -i -e 's/Signed\(.\?[Rr]epo\)/Dist\1/g'
2017-03-30 09:47:20 -04:00
Mike McLean
75ac8be3b7 avoid directory namespace conflicts with signed repos 2017-03-30 09:45:59 -04:00
Mike McLean
6a6f79dec3 remove incorrect singleton syntax in _taskLabel() 2017-03-30 09:37:56 -04:00
Jay Greguske
4f4c7e3d4e implement multilib 2017-03-30 09:37:56 -04:00
Jay Greguske
f1a45e0024 signed-repo kojiweb tweaks 2017-03-30 09:37:56 -04:00
Jay Greguske
76d8caf33b initial builder implementation for signed-repos 2017-03-30 09:37:56 -04:00
Jay Greguske
53c379b6f8 initial hub implementation for signed-repos 2017-03-30 09:37:56 -04:00
Tomas Kopecek
4ef0bc2051 use only relative paths + volumes in downloadTaskOutput 2017-03-28 11:46:47 +02:00
Mike McLean
8a08a3e796 volume opt for checkUpload 2017-03-28 11:46:47 +02:00
Tomas Kopecek
8868d184cb propagate volume through hub 2017-03-28 11:46:47 +02:00
Tomas Kopecek
323987e376 Allow uploading files to non-default volumes 2017-03-28 11:46:47 +02:00
Mike McLean
1b46d0ad2e debug/debug_xmlrpc should default to False 2017-03-20 15:34:12 -04:00
Chenxiong Qi
085711cd33 Add debug and debug_xmlrpc to default koji config
Signed-off-by: Chenxiong Qi <cqi@redhat.com>
2017-03-20 15:34:12 -04:00
Tomas Kopecek
93034f64f3 idioms 2017-03-17 11:35:53 -04:00
Tomas Kopecek
cf214de792 remove sys.exc_type, exc_value, exc_traceback 2017-03-17 11:35:53 -04:00
Tomas Kopecek
bcef98b1c4 remove unused function parse_timestamp 2017-03-15 16:30:50 +01:00
Tomas Kopecek
186d6db4b2 Handle empty file upload 2017-03-07 18:22:32 +01:00
Tomas Kopecek
cc9fff9840 remove has_key (not working in python3) 2017-03-07 08:15:20 -05:00
Tomas Kopecek
1494301465 use new exception syntax 2017-03-02 10:52:30 -05:00
Tomas Kopecek
c143d0b88f print statement -> print function 2017-02-28 10:55:56 -05:00
Mike McLean
6f45b92ac5 fixEncodingRecurse function 2017-02-16 16:26:42 -05:00
Mike McLean
eb7a1e369f check http request status before attempting to decode response 2017-02-14 11:19:15 -05:00
Patrick Uiterwijk
253161f229 Allow principal and keytab in cli config
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-01-17 14:12:19 -05:00
Tomas Kopecek
0407185901 Don't require cert/serverca for kojid
Now is demanded from user to supply kojid-specific configuration or
previously expected files are used as defaults
(/etc/kojid/serverca.crt). So, user has no option to not use these and
use just system-wide certificates.

If these values are not specified, python-requests would fall back to
/etc/pki supplied files. If there is also ssl_verify=True (which is
default), everything should work correctly.
2017-01-13 10:46:41 -05:00
Tomas Kopecek
5612b1a709 Error message for missing certificates 2017-01-13 10:46:41 -05:00