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
Tomas Kopecek
75ff25d4fd
remove unused variable
2018-06-07 09:56:27 -04:00
Tomas Kopecek
7de48fe5ff
propagate exception correctly
...
Fixes: https://pagure.io/koji/issue/844
2018-06-07 09:56:27 -04:00
Tomas Kopecek
c68396c059
Use unittest2 for rhel6 compatibility
...
Fixes: https://pagure.io/koji/issue/830
2018-06-07 09:39:39 -04:00
Franz Chih-Ping Hsieh
f356ac4f17
force using python2 to run script
...
Fixes #945
2018-05-24 00:01:30 -04:00
Tomas Kopecek
169aed66c5
make py2 files parseable with py3
2018-05-03 15:56:56 -04:00
Tomas Kopecek
2eaac43473
replace long with int
...
long conversion here results in same python type, in py3 it is no more
supported.
2018-05-03 12:26:21 -04:00
Mike McLean
024782eacc
also forget requests session in _forget()
2018-04-30 16:56:11 -04:00
Mike McLean
79a59c9d47
account for ignored self-provides in rpmdiff hash
2018-04-27 11:53:37 -04:00
Tomas Kopecek
c67dcee3ad
erase ignored fields
2018-04-27 11:53:37 -04:00
Tomas Kopecek
72d619929e
use 'ignore' in hash computation
2018-04-27 11:53:37 -04:00
Tomas Kopecek
71d5bdc02d
make rpmdiff.py lib only
...
Original sript-like behaviour is moved to koji-tools
https://pagure.io/koji-tools/pull-request/6
2018-04-27 11:53:37 -04:00
Mike McLean
2248b03406
TEST: add sanity check to rpmdiff main
2018-04-27 11:53:37 -04:00
Tomas Kopecek
af5f110d37
check for empty header
2018-04-27 11:53:37 -04:00
Tomas Kopecek
cb03d3ec9c
typo
2018-04-27 11:53:37 -04:00
Tomas Kopecek
54e52e469e
move rpmdiff to koji lib
2018-04-27 11:53:37 -04:00
Mike McLean
ed5ef6458c
Fix typo in deleted mount check
...
Follow up to PR #402
Fixes #387
2018-04-24 17:20:37 -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
daf0764ad3
fix host id lookup for anonymous sessions
2018-04-04 09:43:47 -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
Yuming Zhu
43a433d37a
do not shell=True
2018-03-14 20:23:24 +08:00
Yuming Zhu
7eabd8b98f
fix subprocess.check_output for py2.6
2018-03-14 18:37:38 +08: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
Yuming Zhu
62e94c100c
fix duplicated args - parent in waittest task
2018-02-19 17:02:16 -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
d0c4f29b44
just use original url for non-git sources
2017-12-11 12:50:46 -05:00
Mike McLean
99dcb3798d
avoid splitting SCM class in kojikamid
2017-12-11 12:50:46 -05:00
Tomas Kopecek
0ae68fbbcb
store source also for CVS/SVN
2017-12-11 12:50:46 -05:00
Tomas Kopecek
4a96ee5474
store git commit hash to build.source
...
Git HEAD commit hash is now stored in build.info field. this field is
currently used by content generators, but not by other builds. Also
original checked out url is stored in build.extra.url field.
Fixes: https://pagure.io/koji/issue/550
2017-12-11 12:50:46 -05: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