Tomas Kopecek
5882bc249b
remove unneeded chown
2019-06-26 09:06:48 +02:00
Tomas Kopecek
2bef7c16dc
rename source_srpm to srpm
2019-06-26 09:06:48 +02:00
Mike McLean
17128a67fd
use getBuildConfig with event_id to check for rebuild_srpm setting
2019-06-26 09:06:48 +02:00
Tomas Kopecek
279e6533f6
rebuildSRPM task
...
New task rebuildSRPM for srpms uploaded to koji. If policy
'rebuild_srpm' returns True, build task will spawn rebuildSRPM task
first to recreate SRPM with updated buildroot macros, typically 'dist'.
Policy has access to same data as build_from_srpm and build_from_repo_id
policies. (user_id, source, task_id, build_tag, skip_tag, target, tag)
Fixes: https://pagure.io/koji/issue/1396
2019-06-26 09:06:48 +02:00
Mike McLean
0899f74de3
Don't pass block list in bare merge mode
...
Related: https://pagure.io/koji/issue/1404
mergerepos_c doesn't allow -b without --koji
2019-06-19 11:16:35 -04:00
Tomas Kopecek
be1a56647a
createrepo_c is used by default now
...
Fixes: https://pagure.io/koji/issue/716
2019-06-06 16:24:17 -04:00
Tomas Kopecek
e3c5a03156
deprecate BuildRoot.uploadDir method
...
Fixes: https://pagure.io/koji/issue/839
2019-05-31 19:58:22 -04:00
Mikolaj Izdebski
3d058c50db
Allow generating separate src repo for build repos
...
Fixes #1266
2019-05-23 10:01:12 -04:00
Mike McLean
fc250d09c2
typo in comment
2019-05-20 17:07:50 -04:00
Tomas Kopecek
3cb64be496
py2.6 compatibility fix
...
Python 2.6 doesn't support context manager for GzipFile. Revert to
original behaviour.
Fixes: https://pagure.io/koji/issue/1431
2019-05-20 17:07:50 -04:00
Mike McLean
be6ae53fb6
handle bare merge mode
...
Fixes https://pagure.io/koji/issue/1404
2019-05-06 11:23:19 -04:00
Brian Stinson
af1efed6fa
build_srpm: Wait until after running the sources command to check for
...
alt_sources_dir
In the RPM layout, it's possible that the SOURCES directory might be
completely empty save for the lookaside payload. In this case a SOURCES
directory wouldn't exist in SCM, and wouldn't be created until the
sources command is run.
2019-05-06 10:47:36 -04:00
Igor Gnatenko
a66b4ddfb4
kojid: Download only 'repomd.xml'
...
We have pretty slow connection from s390x koji which helped to uncover
this part. Kojid downloads all files from repomd.xml (incl. filelists)
which is really big. What we really want is just find location of
'origin' (used later in the code).
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2019-04-17 07:38:03 +02:00
Tomas Kopecek
0f8e61554c
Use createrepo_update even for first repo run
...
createrepo_update is currently reusing only old repos from same tag.
Nevertheless, for first newRepo there is no old data, but there is a
high chance, that we inherit something. This inherited repo can be used
also for significant speedup.
Fixes: https://pagure.io/koji/issue/1354
2019-04-09 15:36:32 -04:00
Tomas Kopecek
47ed809a8a
Rely on ozif_enabled switch in BaseImageTask
...
Fixes: https://pagure.io/koji/issue/1345
2019-03-15 10:27:21 -04:00
Tomas Kopecek
12cabb0f2c
Remove 'keepalive' option
...
keepalive is not used anymore anywhere in koji
Fixes: https://pagure.io/koji/issue/1239
2019-03-12 10:34:36 -04:00
Mike McLean
01b0a41639
fix file open mode
2019-03-04 09:28:39 -05:00
Mike McLean
f7f75d20ee
error if volume id is too long
2019-02-21 16:37:35 -05:00
Mike McLean
23b5a40c42
fix references to logger instance
2019-02-21 16:37:35 -05:00
Brendan Reilly
deb738fc1d
Added warnings and failures for too long volid
2019-02-21 16:37:35 -05:00
Brendan Reilly
b92824cca0
Added volume id as argument to livemedia task
2019-02-21 16:37:35 -05:00
Tomas Kopecek
8d62b5f197
python 3 can't index dict.keys()
...
Fixes: https://pagure.io/koji/issue/1262
2019-02-19 11:18:06 +01:00
Tomas Kopecek
b78c1b42aa
fix race-condition with librepo temp directories
...
Same directory is used for all librepo uses. It should be done inside
mock directory.
Fixes: https://pagure.io/koji/issue/1250
2019-02-18 14:50:05 -05:00
Mike McLean
5f15ff218b
drop dnf from yum handler
2019-02-12 16:09:20 -05:00
Tomas Kopecek
5216c54572
distrepo via dnf
2019-02-12 16:09:19 -05:00
Tomas Kopecek
69c2acaebc
use librepo instead of yum where possible
...
librepo is not available from RHEL6 by default, so don't expect it as a
hardrequire for now
2019-02-12 16:09:19 -05:00
Tomas Kopecek
ccf1c41274
fixes
2019-02-12 16:09:19 -05:00
Tomas Kopecek
009081c0fc
bundle rpmUtils.arch
2019-02-12 16:09:19 -05:00
Tomas Kopecek
ed01f8d299
reorder imports
2019-02-12 16:09:19 -05:00
Tomas Kopecek
a7280fb5c0
fix rpm headers access
2019-02-12 16:07:49 -05:00
Tomas Kopecek
e2c7826338
use files in context managers
2019-02-12 16:06:00 -05:00
Tomas Kopecek
5885b526ac
fix librepo workdir
2019-02-12 16:06:00 -05:00
Tomas Kopecek
426a8c2b16
rpm builds
2019-02-12 16:06:00 -05:00
Tomas Kopecek
9fb7a2ffda
simplify .keys() usage
2019-02-12 16:06:00 -05:00
Tomas Kopecek
d3766c19b5
replace obsoleted libs
2019-02-12 16:06:00 -05:00
Tomas Kopecek
1ca24fe567
remove testing hashlib
...
hashlib is in stdlib from python 2.5, no more need for testing its
existence.
2019-02-12 16:06:00 -05:00
Tomas Kopecek
6afd45f7b4
remove unused variables
2019-02-12 16:06:00 -05:00
Mike McLean
586e23f228
allow setting task_avail_delay in kojid.conf
2018-12-03 15:54:07 -05:00
Patrick Uiterwijk
4ed093ea70
Do not require split_debuginfo
...
Fixes : #1114
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
2018-10-18 11:37:15 +02:00
Tomas Kopecek
9effd55c39
create pkgorigins
2018-09-20 12:37:26 -04:00
Mike McLean
a2c61d3992
simple mode for mergerepos
2018-09-20 12:37:26 -04:00
Mike McLean
3a5dd71686
let merge repos deal with it
2018-09-20 12:37:26 -04:00
Tomas Kopecek
3cc443df97
Fix isinstance with lists
...
Fixes: https://pagure.io/koji/issue/1011
2018-08-08 11:34:39 -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
bc425033b5
fix rest of int/long
2018-07-11 17:37:40 -04:00
Tomas Kopecek
220e889f2b
python-modernize -f libmodernize.fixes.fix_int_long_tuple
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