Commit graph

117 commits

Author SHA1 Message Date
Yu Ming Zhu
135ac0d6ae clean python compiled binaries for non *.py code
fixes: #1698
2019-10-31 13:20:53 +01:00
Yu Ming Zhu
4c1928f377 extract read_config_files util for config parsing 2019-10-15 09:14:16 +02:00
Tomas Kopecek
46f85c9b86 verifyChecksum fails for non-output files
PR #967 introduced another error. Before verifyChecksum was used only
from kojikamid and it made sense, that it failed on other files. Now it
is used also for build requires, etc. As it makes no harm (read-only),
we can extend this check for other paths.

Fixes: https://pagure.io/koji/issue/1669
2019-10-15 09:10:10 +02:00
Yu Ming Zhu
2034695e88 add an option to set server realm for all clients 2019-10-10 16:37:56 +02:00
Tomas Kopecek
63648170df Fix typo preventing vm builds
Bug introduced in PR #967 prevents vm builds to work. There is an
additional option to method verifyChecksum.

Fixes: https://pagure.io/koji/issue/1665
2019-10-09 09:15:14 +02:00
Mike McLean
daa58d4f9d kojivmd, too 2019-02-21 11:22:34 -05:00
Mike Bonnet
6bdb18e26f re-add import removed by 921258749a
kojikamid has code from other files substituted into it, to reduce
copy-paste. In this case, the SCM class from koji/daemon.py
requires the urlparse module.
2019-01-15 11:42:21 -05:00
Mike McLean
8a36479cdb fix undefined var 2019-01-15 10:51:19 -05:00
Mike McLean
4fa2901720 cleanup
unused var
whitespace
missing import
2019-01-15 10:51:19 -05:00
Tomas Kopecek
4191840bd7 check_sigmd5 for kojivmd 2019-01-15 10:51:19 -05:00
Tomas Kopecek
28ce53afc3 use correct fileinfo checksum field
Fixes: https://pagure.io/koji/issue/966
2019-01-15 10:51:19 -05:00
Tomas Kopecek
f4ee150026 drop encode_int helper
We're already using i8 encoding mechanism, so this function is no more
needed.

Fixes: https://pagure.io/koji/issue/750
2018-12-03 23:55:39 -05:00
Tomas Kopecek
6f7f828f77 python-modernize -f lib2to3.fixes.fix_except 2018-07-11 17:37:40 -04:00
Tomas Kopecek
caae1a0a8b workaround unnecessary list conversions 2018-07-11 17:37:40 -04:00
Tomas Kopecek
8e61dc7c56 python-modernize -f libmodernize.fixes.fix_classic_division 2018-07-11 17:37:40 -04:00
Tomas Kopecek
be535c2854 python-modernize -f libmodernize.fixes.fix_imports_six 2018-07-11 17:37:39 -04:00
Tomas Kopecek
d92fa1fa9c python-modernize -f libmodernize.fixes.fix_file 2018-07-11 17:37:39 -04:00
Tomas Kopecek
7f6b717eb6 python-modernize -f libmodernize.fixes.fix_import 2018-07-11 17:37:39 -04:00
Tomas Kopecek
bcee24e50c python-modernize -f libmodernize.fixes.fix_dict_six 2018-07-11 17:37:39 -04:00
Franz Chih-Ping Hsieh
f356ac4f17 force using python2 to run script
Fixes #945
2018-05-24 00:01:30 -04:00
Mike McLean
4c07073403 simplify check for krbV module 2018-04-02 16:38:27 -04:00
Mike McLean
91b306e108 Avoid failing at import time if krbV module is missing
Several parts of Koji already handled this absence gracefully. This change
extends that behavior to all places where krbV is imported.
2018-04-02 16:38:27 -04: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
Tomas Kopecek
7c62fb7023 Don't check non-existing file
Related: https://pagure.io/koji/issue/665
2017-11-09 17:50:57 -05:00
Tomas Kopecek
379ec8ae63 python-modernize -f lib2to3.fixes.file . -w 2017-10-31 16:05:16 +01:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Tomas Kopecek
bf0552e6de use contextlib wrapper for older python-requests 2017-10-16 10:03:42 -04:00
Tomas Kopecek
7e2cb6b156 replace pycurl with requests
Related: https://pagure.io/koji/issue/600
2017-10-16 10:03:42 -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
ca9bd3941b kojivmd: fix typo in serverca path and also fix cert value 2017-08-23 15:00:02 -04:00
Mike McLean
3461e334b2 fix serverca default in kojivmd 2017-08-23 15:00:02 -04:00
Mike McLean
83e47bf42a update docs links in service configs 2017-08-08 12:18:04 -04:00
Tomas Kopecek
d625c0aa4d remove changes not relevant to cli 2017-06-01 09:39:24 +02:00
Tomas Kopecek
644792ff76 replace urlgrabber with pycurl 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
b1da150c01 python-modernize -f libmodernize.fixes.fix_imports_six 2017-06-01 09:39:21 +02: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
d81d293ed9 allow setting more session options in kojivmd 2016-11-22 16:41:31 -05:00
Mike McLean
89ca42f224 use grab_session_options everywhere 2016-11-22 16:41:31 -05:00
Mike McLean
b4be256abd no coverage for unreached code 2016-10-25 17:16:12 -04:00
Mike McLean
a1c8808544 ImportErrors are uncovered 2016-10-25 17:16:12 -04:00
Tomas Kopecek
921258749a removed unused imports 2016-10-04 15:48:54 +02:00
Mike McLean
4b36a8f2f9 fix spelling error 2016-09-15 15:59:03 -04:00
Mike McLean
b0cdd312ec add krb_rdns option. see https://fedorahosted.org/koji/ticket/328 2016-05-11 16:58:41 -04:00
Till Maas
ffcf1a30eb Remove dead client CA code
The client CA is only needed to for authentication on the server side,
not for authentication on the client side. Therefore remove it from all
client login code.
2015-12-10 18:51:10 -05:00
Zbigniew Jędrzejewski-Szmek
7c435492cf Add systemd unit file for kojivmd
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-06-07 08:14:53 -05:00
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00