Yuming Zhu
5bfbe4ae4a
use double quotes instead of escaping
2018-04-18 18:37:11 -04:00
Yuming Zhu
22eea4546b
simplify strict logic in get_archive_file
2018-04-18 18:37:11 -04:00
Yuming Zhu
6d9b936204
hub: unittest for list_archive_files()
2018-04-18 18:37:11 -04:00
Yuming Zhu
eedea9f0d5
hub: add strict behaviors for get_archive_file and list_archive_files
2018-04-18 18:37:11 -04:00
Yuming Zhu
436465d66b
hub: throw GenericError in get_archive_file()
...
relates: #719
2018-04-18 18:37:11 -04:00
Mike McLean
2b7b90a259
PR#726: pass full buildinfo obtained by get_build to postBuildStateChange callbacks
...
Merges #726
https://pagure.io/koji/pull-request/726
Relates: #725
https://pagure.io/koji/issue/725
'postBuildStateChange' doesn't always contain consistent buildinfo
2018-04-18 18:12:02 -04:00
Yuming Zhu
680e84ef80
ut: fix test_import_build
2018-04-18 18:11:54 -04:00
Yuming Zhu
7c1865f9c4
pass full buildinfo obtained by get_build to postBuildStateChange callbacks
...
relates #725
2018-04-18 18:11:54 -04:00
Mike McLean
37467d5d7a
PR#823: Add --old-chroot option to runroot command
...
Merges #823
https://pagure.io/koji/pull-request/823
Fixes : #772
https://pagure.io/koji/issue/772
runroot plugin doesn't have way to force old-chroot with newer mock
2018-04-18 18:03:04 -04:00
Tomas Kopecek
d0238943be
Allow t use new/old-chroot in runroot
...
Fixes: https://pagure.io/koji/issue/772
2018-04-18 18:02:54 -04:00
Mike McLean
0d72403ca5
PR#881: add txkoji to related projects
...
Merges #881
https://pagure.io/koji/pull-request/881
Fixes : #880
https://pagure.io/koji/issue/880
Add txkoji to project links
2018-04-13 15:47:17 -04:00
Tomas Kopecek
bb35fb0684
add txkoji to related projects
...
Fixes: https://pagure.io/koji/issue/880
2018-04-10 13:33:16 +02:00
Mike McLean
ab1ade75c1
Fix CVE-2018-1002150 - distRepoMove missing access check
...
Fixes : #850
https://pagure.io/koji/issue/850
fix access check in host.distRepoMove
2018-04-04 09:46:29 -04:00
Mike McLean
daf0764ad3
fix host id lookup for anonymous sessions
2018-04-04 09:43:47 -04:00
Mike McLean
642bcb3bd9
fix access check in host.distRepoMove
...
Fixes CVE-2018-1002150
2018-04-04 09:43:47 -04:00
Mike McLean
67e82f56b9
PR#822: Don't show license for external rpms
...
Merges #822
https://pagure.io/koji/pull-request/822
Fixes : #791
https://pagure.io/koji/issue/791
kojiweb shows bogus License value for external rpm
2018-04-03 17:16:47 -04:00
Tomas Kopecek
d2fcb8b459
Don't show license for external rpms
...
Fixes: https://pagure.io/koji/issue/791
2018-04-03 17:16:41 -04:00
Mike McLean
2ac1a83984
PR#779: drop cascade in schema-clear
...
Merges #779
https://pagure.io/koji/pull-request/779
2018-04-03 16:49:31 -04:00
Tomas Kopecek
ccd7715f05
drop unsupported schema-clear.sql
2018-04-03 16:49:24 -04:00
Mike McLean
c9d827f098
PR#860: mavenBuild uses wrong session
...
Merges #860
https://pagure.io/koji/pull-request/860
Fixes : #859
https://pagure.io/koji/issue/859
mavenBuild uses wrong sessions object
2018-04-03 16:15:55 -04:00
Tomas Kopecek
506f114e89
mavenBuild uses wrong session
...
Fixes: https://pagure.io/koji/issue/859
2018-04-03 16:15:49 -04:00
Mike McLean
0ea4d0b210
PR#858: restart-hosts fails if provided arguments
...
Merges #858
https://pagure.io/koji/pull-request/858
Fixes : #815
https://pagure.io/koji/issue/815
restart-hosts should raise error if args are provided
2018-04-03 12:16:23 -04:00
Brendan Reilly
f33d01ecd4
restart-hosts fails if provided arguments
2018-04-03 12:16:19 -04:00
Mike McLean
6e4959f7b6
PR#853: Show the krb principal name in debug log
...
Merges #853
https://pagure.io/koji/pull-request/853
2018-04-02 16:40:08 -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
Mike McLean
87e23fa6c4
PR#711: Drop explicit python-krbV dependency for modern platforms
...
Merges #711
https://pagure.io/koji/pull-request/711
2018-04-02 16:38:31 -04:00
Mike McLean
4c07073403
simplify check for krbV module
2018-04-02 16:38:27 -04:00
Mike McLean
cc208eff5d
only explicitly require python-krbV on older platforms
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
Mike McLean
dad74a3a9e
PR#768: json serialize additional types in protonmsg
...
Merges #768
https://pagure.io/koji/pull-request/768
Fixes : #741
https://pagure.io/koji/issue/741
protonmsg fails on common data types
2018-03-21 15:08:32 -04:00
Mike McLean
1bf3bd22d7
protonmsg: unit test for unencodable data
2018-03-21 15:08:26 -04:00
Tomas Kopecek
5712c8efb6
Don't raise error on unserializable data
2018-03-21 15:08:26 -04:00
Tomas Kopecek
3bfcc6a66e
json serialize additional types in protonmsg
...
Fixes: https://pagure.io/koji/issue/741
2018-03-21 15:08:26 -04:00
Mike McLean
f869eb4158
PR#849: kojira: sanity check in pruneLocalRepos
...
Merges #849
https://pagure.io/koji/pull-request/849
2018-03-16 16:50:14 -04:00
Yuming Zhu
52f0dfbc1c
kojira: sanity check in pruneLocalRepos
2018-03-16 16:50:00 -04:00
Mike McLean
be80208ce5
PR#848: use subprocess.Popen instead of subprocess.check_output
...
Merges #848
https://pagure.io/koji/pull-request/848
Fixes : #846
https://pagure.io/koji/issue/846
error occurs in SCM.get_source since subprocess.check_output is not supported by python 2.6-
2018-03-16 16:43:47 -04:00
Yuming Zhu
43a433d37a
do not shell=True
2018-03-14 20:23:24 +08:00
Yuming Zhu
c008ac8bb9
unittest for scm.get_source
2018-03-14 19:10:12 +08:00
Yuming Zhu
7eabd8b98f
fix subprocess.check_output for py2.6
2018-03-14 18:37:38 +08:00
Mike McLean
e120ee7e2a
PR#819: Drop pre-2.6 compat function koji.util._relpath
...
Merges #819
https://pagure.io/koji/pull-request/819
Fixes : #818
https://pagure.io/koji/issue/818
Drop pre2.6 compatibility function koji.util.relpath
2018-03-08 10:23:49 -05: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
22a7998f3a
PR#828: fix runroot output on py3
...
Merges #828
https://pagure.io/koji/pull-request/828
Fixes : #738
https://pagure.io/koji/issue/738
Runroot logs don't work on python3
2018-03-08 10:15:13 -05:00
Mike McLean
8e4df0db11
fix runroot output on py3
2018-03-08 10:15:08 -05:00
Mike McLean
50d02cdca6
PR#765: search build by source
...
Merges #765
https://pagure.io/koji/pull-request/765
Fixes : #701
https://pagure.io/koji/issue/701
RFE: search for brew builds by git hash
2018-03-06 12:26:47 -05:00
Mike McLean
42b3d596ea
update listBuilds docstring
2018-03-06 12:26:43 -05:00
Tomas Kopecek
f468aeb19a
extend listBuilds for search by source
...
Fixes: https://pagure.io/koji/issue/701
2018-03-06 12:26:43 -05:00
Mike McLean
12b9af57c7
PR#817: Update the volume ID substitutions list and application
...
Merges #817
https://pagure.io/koji/pull-request/817
2018-03-06 12:21:04 -05:00
Mike McLean
f4f26b0571
add link to issue
2018-03-06 12:20:59 -05:00
Adam Williamson
72204b4f7f
Update the volume ID substitutions list and application
...
Some newer subvariants / loadouts, and 'Rawhide' for some
reason, were missing from the substitution list. This updates
it, alphabetizes it, adjusts the indentation to match how it
is in pungi-fedora for ease of comparison, and also tweaks the
way the list is applied to match
https://pagure.io/pungi/pull-request/857 , the correct way to
ensure longer substitutions are applied before shorter ones.
Note 'Alpha' and 'TC' are removed because we don't do Alphas or
TCs any more.
Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-03-06 12:20:59 -05:00
Mike McLean
45a5d3f99b
PR#744: Replace cmp= with key= for python3 support
...
Merges #744
https://pagure.io/koji/pull-request/744
Fixes : #713
https://pagure.io/koji/issue/713
invalid keyword cmp in python3 list.sort() and sorted()
2018-03-01 16:01:57 -05:00