Commit graph

1777 commits

Author SHA1 Message Date
Mike McLean
a621081b4e wsdl archivetype 2016-01-15 12:01:51 -05:00
Mike McLean
a6c218df94 avoid traceback when cli fails to parse task parameters
also, fix parameter parsing for createLiveCD and createAppliance
2016-01-11 14:30:55 -05:00
Mike McLean
33cf1ab6f2 avoid masking exceptions in retry code 2016-01-05 17:56:40 -05:00
Mike McLean
7e56b133a0 handle Unexpected EOF exceptions on reads 2016-01-05 17:56:40 -05:00
Mike McLean
de92c542dc clarify error message for noarch rpmdiff mismatches
see https://fedorahosted.org/koji/ticket/325
2016-01-04 15:15:00 -05:00
Mike McLean
8168da12cd add rc archivetype 2016-01-04 12:44:35 -05:00
Mike McLean
7bac2721f8 fix errors in several raise statements 2015-12-21 13:31:17 -05:00
Dennis Gilmore
490dc1e958 allow filtering runroot tasks
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-17 14:06:19 -06:00
Mike McLean
4d528dfcd4 add missing comma in schema file 2015-12-15 18:55:03 -05:00
Mike McLean
d3da1bb50b adjust default seach result order for large tables
Based on a user request. For some searches, ordering by id descending
(approximately "most recent") makes more sense.
2015-12-14 11:09:41 -05:00
Mike McLean
a2ed2beb38 adjust option name to: use_createrepo_c 2015-12-11 16:49:37 -05:00
Dennis Gilmore
cfe69773c2 enable using createrepo_c instread of createrepo.
Make createrepo_c use a configurable action, defaulting to createrepo

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:46:40 -05:00
Mike McLean
cdf8c2497d fix using https url with non-ssl auth in python 2.7.9+
In python 2.7.9, a context option was added to httplib.HTTPSConnection and
changed its behavior to performs certificate and hostname checks by default.

While this is definitely an improvement, we were relying on the old behavior.
This change restores that (until we can switch to proper verification).
2015-12-11 16:39:14 -05:00
Mike McLean
9453272a50 remove additional dead ssl code
I've been meaning to do this for a while. No part of Koji uses the
removed code anymore (some of it was never used by Koji)
2015-12-11 16:34:44 -05:00
Dennis Gilmore
86ca706a2e Make sure a URL is written to the output kickstart file.
pykickstart isn't setting ks.handler.url.seen when setting url.url, but
it does set seen when using the style in this patch.  Having seen set,
the URL line should be written to the kickstart file.

Patch written by Chris Lumens <clumens@redhat.com>

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:00:42 -05:00
Dennis Gilmore
b968701b85 Don't use stringToVersion from pykickstart.
First off, it's in the version module, not in the parser.  Second, it's
not necessary since makeVersion will take either a string or a constant
as an argument.

Patch by Chris Lumens <clumens@redhat.com>

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-11 16:00:41 -05:00
Till Maas
ffcf1a30eb Remove dead client CA code
The client CA is only needed to for authentication on the server side,
not for authentication on the client side. Therefore remove it from all
client login code.
2015-12-10 18:51:10 -05:00
Mike McLean
c54ea3312a new archivetypes: shell scripts and batch files 2015-12-10 14:45:37 -05:00
Dennis Gilmore
625c6dbcf5 fix the matching of archivetypes
updated query came from mikem in https://pagure.io/koji/issue/10

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-12-10 12:34:13 -06:00
Mike McLean
c8fccdeba5 display task info for regen-repo command 2015-12-04 16:31:55 -05:00
Mike McLean
b74052f0cd don't break listArchives argument ordering 2015-12-04 16:04:34 -05:00
Mike McLean
14caa6edb7 fix query opts in repo_references 2015-12-04 16:04:34 -05:00
Mike McLean
bf57dfca5b avoid waiting on empty task list in newRepo tasks 2015-12-04 16:04:34 -05:00
Mike McLean
4d981318dc avoid db error when taskSetWait called with empty task list 2015-12-04 16:04:34 -05:00
Mike McLean
a1e8ff5ba5 fix query opts passing in repo_references 2015-12-04 16:04:34 -05:00
Mike McLean
2853c9b4f4 ensure fixed_params variable is defined 2015-12-04 16:04:34 -05:00
Mike McLean
a63e61dcef fix nvr recycling 2015-12-04 16:04:33 -05:00
Mike McLean
964561b426 fall back to client side info for authtype 2015-12-03 19:50:10 -05:00
Mike Bonnet
5569c058c1 print the correct authentication method in "koji moshimoshi" 2015-12-01 18:51:53 -05:00
Mike McLean
ecb5c5a397 remove stray # from literal footers in web ui 2015-12-01 13:02:31 -05:00
Mike McLean
41237ec6a9 taginfo: return error code if tag does not exist, drop stray newlines 2015-12-01 13:02:31 -05:00
Till Maas
3a13307598 Increase default SSL timeout to 600
60 is not enough to process a full release like Rawhide and last I
checked the code to use a different timeout than the default timeout
does not work. Therefore use a working default value.

Signed-off-by: Till Maas <opensource@till.name>
2015-11-27 18:39:13 +01:00
Mike McLean
47189e0c3a Merge branch 'cgen'
Merge in content generator changes

Conflicts:
	hub/kojihub.py
2015-11-18 10:55:21 -05:00
Mike McLean
c1e1f34f64 remove mutable default args in _do_target_image 2015-11-17 15:13:57 -05:00
Ian McLeod
66fdccd1b3 add mechanism for general purpose parameter passing to Image Factory
We originally added semi-generic parameter passing for OVA support and
then overloaded it for Vagrant support, before breaking that back out
as specific image types.

This change adds a fairly generic mechanism for parameter passthrough
to plugins and the base builder that does not require patching the
builder and CLI each time a new class of parameter is added to Factory.

The immediate reason for doing this is to expose the Docker plugin's
ability to set custom labels, environments and commands, but it is
likely to be useful for other things in the future.
2015-11-17 14:47:30 -05:00
Mike McLean
262ec7a7da add groovy script archive type 2015-11-17 14:43:05 -05:00
Mike Bonnet
636b9c8383 fail a build that produces an unknown file type, rather than silently ignoring them 2015-11-17 14:32:04 -05:00
Mike Bonnet
d4d04ae9e6 cleanup the build directory when re-running a failed build 2015-11-17 14:20:07 -05:00
Mike McLean
87fb7f46e9 Merge remote-tracking branch 'origin/master' into cgen 2015-11-17 10:52:42 -05:00
Mike McLean
3e663b8556 Better web display for metadata_only imports 2015-11-17 10:46:31 -05:00
Mike McLean
6c6bef9630 record and report source and metadata_only fields 2015-11-17 10:46:10 -05:00
Mike McLean
f40b39cd68 ensure builddir when writing cg metadata file 2015-11-17 10:45:46 -05:00
Mike McLean
353927e00b fix refactor issue 2015-11-17 10:45:31 -05:00
Mike McLean
34a400652e cg_import policy stub 2015-11-17 10:45:31 -05:00
Mike McLean
fe4982c70c run prep steps early 2015-11-17 10:45:31 -05:00
Mike McLean
6be5d30b13 more refactor 2015-11-17 10:45:31 -05:00
Mike McLean
03b43c1c37 don't pass importer class to callback. could confuse plugins 2015-11-17 10:45:31 -05:00
Mike McLean
a0036c4489 refactoring cg importer to facilitate policy hooks 2015-11-17 10:44:17 -05:00
Mike McLean
d8baff3b63 fix a small typo 2015-11-12 14:48:07 -05:00
Mike McLean
910051e783 make sure timestamps are floats to keep datetime happy 2015-11-11 00:56:39 -05:00