Mike McLean
95591103ca
support merge_mode field
2018-09-20 12:37:26 -04:00
Mike McLean
dab29276e0
more informative error for invalid scm schemes
2018-09-07 16:23:02 -04:00
Tomas Kopecek
1886fe54a6
check rpm headers support directly
2018-08-16 13:36:07 -04:00
Tomas Kopecek
27abb872c6
Expand user directory from config
...
Fixes: https://pagure.io/koji/issue/1022
2018-08-16 09:09:29 -04:00
Mike McLean
e559653ab5
simplify ignore logic in rpmdiff function
2018-08-10 15:47:46 -04:00
Tomas Kopecek
d1544e7f05
Correctly ignore all values in rpmdiff
...
Related: https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Franz Chih-Ping Hsieh
e25603dd97
copy data from static variable instead of use it directly to prevent caching.
...
also update test cases to verfiy this issue.
Fixes : #994
https://pagure.io/koji/issue/994
2018-08-10 15:47:46 -04:00
Tomas Kopecek
3cc443df97
Fix isinstance with lists
...
Fixes: https://pagure.io/koji/issue/1011
2018-08-08 11:34:39 -04:00
Franz Chih-Ping Hsieh
646c43561a
decode_args(): make a copy of the opts dict, rather than modifying it in-place
...
Fixes : #1007
https://pagure.io/koji/issue/1007
Author: Mike Bonnet <mikeb@redhat.com>
Date: Wed Jul 18 17:03:56 2018 -0700
The commit changes make_task() to call decode_args() on the arglist before
it is saved to the db. If the method was called with keyword arguments, those
would be passed in a dict at the end of the arglist, with a __starstar entry.
decode_args() edits that dict in place, removing the __starstar entry and
making the arglist appear to end in a single dict argument, effectively
removing the keyword arguments. This change makes a copy of the dict before
2018-07-25 15:07:11 -04:00
Tomas Kopecek
caae1a0a8b
workaround unnecessary list conversions
2018-07-11 17:37:40 -04:00
Tomas Kopecek
b37236d7ae
fix incorrect divisions
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
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
Tomas Kopecek
b96092334d
python-modernize -f libmodernize.fixes.fix_xrange_six
2018-07-11 17:37:39 -04:00
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