Commit graph

545 commits

Author SHA1 Message Date
Lubomír Sedlář
bcac8d49b6 Create repo without --deltas if no old package dir is set
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
2017-11-01 13:18:13 +01:00
Tomas Kopecek
09651a9a8f Explicit tuple in list constructor 2017-10-31 16:18:04 +01:00
Mike McLean
900767cf4b add krb_canon_host option to various clients 2017-10-27 15:32:25 -04:00
Mike McLean
6bdd8fe006 avoid using "fail_fast" as a named parameter 2017-09-19 11:40:39 -04:00
Tomas Kopecek
f22dcaf563 override build_arch_can_fail settings
Fixes: https://pagure.io/koji/issue/413
2017-09-18 16:56:22 -04:00
Mike McLean
1c6051a78c fix scratch ref for scm callback 2017-09-13 14:10:28 -04:00
Yuming Zhu
61b2aee390 add build_tag argument in postSCMCheckout callback 2017-09-13 16:10:46 +08:00
Mike McLean
525bc5e7a8 expose graceful reload in kojid service config and init script 2017-08-22 15:06:57 -04:00
Mike McLean
83e47bf42a update docs links in service configs 2017-08-08 12:18:04 -04:00
John Florian
fa1e69a6ef Change - docstrings for PEP257 compliance
Neither of these methods started with a one-line summary.
2017-08-08 11:44:18 -04:00
John Florian
7cd5d6c4ed Refactor - rename method BuildRoot.relpath for clarity
The semantics of "relative" here are atypical of common expectations.
While the method does return a "related" path, it's still absolute.
Hopefully this new name is less confusing.
2017-08-08 11:44:18 -04:00
John Florian
0aa10b925b Refactor - leverage koji.util.relpath()
Per mikem's request:
https://pagure.io/koji/pull-request/233#comment-22971
2017-08-08 11:44:18 -04:00
John Florian
3e2a737e32 New - custom lorax templates for livemedia tasks
This adds two new options (--lorax_url and --lorax_dir) to the Koji CLI
so that it's now possible to use custom lorax templates for livemedia
tasks.  The custom templates must come from a supported, allowed SCM,
which makes it trivial to inject the whole directory structure of
template files that lorax expects.

In addition to the CLI changes, kojid's LiveMediaTask handler recognizes
these new options and acts accordingly by extending the
livemedia-creator call via its --lorax-templates option.
2017-08-08 11:44:18 -04:00
John Florian
86fa50077d New - kojid.BuildRoot.relpath()
This new method returns an absolute path within the chroot relative the
BuildRoot's chroot.
2017-08-08 11:44:18 -04:00
Ville Skyttä
10bc242c32 Spelling fixes 2017-07-30 12:49:19 +03:00
Tomas Kopecek
ffb88b93ca per-tag configuration of mocks' --new-chroot 2017-06-23 17:21:14 -04:00
Yuming Zhu
781124b52b add scratch param in preSCMCheckout 2017-06-20 09:32:19 -04:00
Yuming Zhu
efc4c9bcff change run_plugin to run_callbacks and remove the modification for kojikamid.py 2017-06-20 09:32:19 -04:00
Yuming Zhu
65799703e2 push build_tag, session, scratch into callbacks 2017-06-20 09:32:19 -04:00
Yuming Zhu
89e82d6020 only path taskinfo, scminfo, [srcdir] to plugin 2017-06-20 09:32:19 -04:00
Xibo Ning
9bf49841ad patch2 for issue 288 2017-06-20 09:32:19 -04:00
Tomas Kopecek
5bcf029d03 don't inspect results for failed createImage tasks 2017-05-19 06:47:51 -04:00
jdisnard
c360c791ec XZ threads are very bad about memory, so use only two threads.
In koji #380 we setup -T0
That will use all available compute resources.
It also has the potential to exhaust system memnory, and cause errors.
This PR seeks a middle ground with 2 XZ threads similar to createrepo_c.
https://github.com/rpm-software-management/createrepo_c/blob/master/src/compression_wrapper.c#L490

Signed-off-by: jdisnard <jdisnard@redhat.com>
2017-05-04 10:07:28 -04:00
jdisnard
d988ff67be Make raw-xz faster by using xz threads (patch #2)
This patch only enabled xz threads -T0, and maximum compresion -9.
This patch removed the -f (--force) in previous patch.
Koji PR #380
Signed-off-by: jdisnard <jdisnard@redhat.com>
2017-05-01 14:40:12 -04:00
jdisnard
b0c6d3d42d ImageBuild: make raw-xz faster by using xz threads
Signed-off-by: jdisnard <jdisnard@redhat.com>
2017-05-01 14:40:12 -04:00
Mike McLean
7405f77af8 rpm files not in (file, volume) layout 2017-05-01 14:35:12 -04:00
Mike McLean
df6bdf05c3 typo 2017-05-01 14:35:12 -04:00
Tomas Kopecek
10650fa4b8 missing argument
Related: https://pagure.io/koji/issue/396
2017-05-01 14:35:12 -04:00
Dennis Gilmore
952465a544 allow kojid to start when not using ssl cert auth
kojid in koji 1.12.0 fails to start when not using ssl cert auth
Traceback (most recent call last):
   File "/usr/sbin/kojid", line 5627, in <module>
     if os.path.isfile(options.cert):
   File "/usr/lib64/python2.7/genericpath.py", line 37, in isfile
     st = os.stat(path)
 TypeError: coercing to Unicode: need string or buffer, NoneType found
if you do not have a cert option defined we should move on. so add
to the if statement a check that the option is actually defined

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2017-04-19 14:51:19 -05:00
Mike McLean
dad02ba6ad record missing signatures even if skipping them 2017-03-30 09:54:28 -04:00
Mike McLean
96d5d0f73b rename some options for clarity 2017-03-30 09:49:58 -04:00
Mike McLean
a758374fdf deal with missing signatures more correctly 2017-03-30 09:49:58 -04:00
Mike McLean
5555a14dd1 log missing multilib files 2017-03-30 09:49:58 -04:00
Mike McLean
2a1d9678cc saner error on missing multilib files 2017-03-30 09:49:58 -04:00
Mike McLean
884a20c0cd propagate the full name of the skip_unsigned option 2017-03-30 09:49:58 -04:00
Mike McLean
216c21d89a log missing signatures even if allowing unsigned 2017-03-30 09:49:58 -04:00
Mike McLean
b7f301f33c log missing files and signatures for dist repos 2017-03-30 09:49:58 -04:00
Mike McLean
dda2549d9c handle case where tag archlist is None 2017-03-30 09:49:58 -04:00
Mike McLean
33e1c3ac4f cleanup: has_key and print
2to3 -pvwn --fix has_key
2to3 -pvwn --fix print
2017-03-30 09:49:58 -04:00
Mike McLean
8346a60976 more renaming 2017-03-30 09:47:20 -04:00
Mike McLean
c86b5c3ac0 first stab at renaming signed repos to dist repos
sed -i -e 's/signed\(.\?[Rr]epo\)/dist\1/g'
sed -i -e 's/Signed\(.\?[Rr]epo\)/Dist\1/g'
2017-03-30 09:47:20 -04:00
Mike McLean
d301fa964b first stab at fixing delta rpm behavior for signed repos 2017-03-30 09:45:59 -04:00
Mike McLean
09ed16e532 upload kojipkgs data 2017-03-30 09:45:59 -04:00
Mike McLean
21fda8805e no integer keys in xmlrpc 2017-03-30 09:45:59 -04:00
Mike McLean
cb6a425d7f rework signedRepoMove api a bit 2017-03-30 09:45:59 -04:00
Mike McLean
1bfa815b16 update exception syntax in signed-repo code 2017-03-30 09:45:59 -04:00
Mike McLean
cea00501a6 clean up logic to avoid duplicate code 2017-03-30 09:45:59 -04:00
Mike McLean
aa18a1f77a rework noarch filter 2017-03-30 09:45:59 -04:00
Mike McLean
576885de1c avoid noarch duplication 2017-03-30 09:45:59 -04:00
Mike McLean
d133806c84 avoid duplicate hard linking 2017-03-30 09:45:59 -04:00