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
Tomas Kopecek
5ad9027320
python-modernize -f libmodernize.fixes.fix_basestring
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
David Abdurachmanov
c4cf933458
Add RISC-V (riscv64) to distrepo task
...
This has been successfully used in Fedora RISC-V.
Signed-off-by: David Abdurachmanov <david.abdurachmanov@gmail.com>
2018-06-14 10:05:41 -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
0dafaa7440
remove deprecated BuildRoot.scrub()
...
Fixes: https://pagure.io/koji/issue/854
2018-06-04 10:58:45 -04:00
Franz Chih-Ping Hsieh
f356ac4f17
force using python2 to run script
...
Fixes #945
2018-05-24 00:01:30 -04:00