Commit graph

373 commits

Author SHA1 Message Date
Mike McLean
32160aa47e show source in buildinfo display, if available 2016-05-11 17:00:21 -04:00
Mike McLean
b0cdd312ec add krb_rdns option. see https://fedorahosted.org/koji/ticket/328 2016-05-11 16:58:41 -04:00
Xibo Ning
57ad5fee82 structural help, categorize commands into groups 2016-04-28 09:33:30 -04:00
Mike McLean
0f5c155784 use correct epoch when recycling nvr 2016-04-26 13:32:52 -04:00
Mike McLean
e3c23f0bed reworking cli import a bit. support importing over a failed/canceled nvr 2016-04-26 13:32:51 -04:00
Mike McLean
498714a2cc honor --test in import-cg command 2016-04-21 11:59:34 -04:00
Mike McLean
5bcfe7034a clean up the tar-gz patch a bit
remove the temp hardlink
don't really need format arg
hook tar-gz format in a bit
2016-04-11 12:05:03 -04:00
Tomas Mlcoch
60cf1f86c9 Fix wait-repo to not wait a minute if --timeout=0 is specified
Wait-repo had time.sleep(60) call before a check for timeout
expiration was done. This patch moves the check before
the sleep() call.

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-04-05 15:39:01 +02:00
Fabian Deutsch
4729adc5f9 Add support for liveimg-squashfs
This patch adds support to build squashfs images which are compatible to
anaconda's liveimg directive and dracuts liveimg feature.
The feature is pretty simple, as it just reuses the raw diskimage, and
strips the disklabel, to retrieve the plain filesystem image.

Two open issues:
- Stripping the disk label is a pretty hack
- Database schema upgrade is missing

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2016-03-30 12:18:56 -04:00
Mike McLean
f639899d2f upload-blocksize doesn't need to be a cli opt 2016-03-24 15:48:21 -04:00
Mike McLean
acbe00ff1b Merge branch 'upload_blocksize'
Conflicted with the recent profiles changes. Option defaults now live in koji/__init__.py
2016-03-24 15:06:41 -04:00
Xibo Ning
2f507ec69a make the upload block size configurable 2016-03-24 14:52:27 -04:00
Mike McLean
88e7d0c1e1 use urlgrab instead of urlopen in download-build 2016-03-21 17:15:05 -04:00
Tomas Mlcoch
3d205c48c6 Fix handling of --arch param when a target is specified
Without this patch mock-config ignores --arch option
and generates invalid mock config files which contain
incorrect statements like:

config_optstarget_arch? = None config_optsyum.conf? = '..SNIP..baseurl=URL_WITH_ARCH_NONE..SNIP..'

Resolves:
* https://fedorahosted.org/koji/ticket/301
* https://bugzilla.redhat.com/show_bug.cgi?id=1248368
* https://bugzilla.redhat.com/show_bug.cgi?id=1161610

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-03-21 15:56:34 -04:00
Tomas Mlcoch
d20e62b76e Move config processing from CLI to koji.read_config()
This patch is dmach's patch [1] refactored according to mikem's comments [2].

[1] https://lists.fedoraproject.org/pipermail/buildsys/2015-August/004858.html
[2] https://lists.fedoraproject.org/pipermail/buildsys/2015-October/004900.html

Signed-off-by: Tomas Mlcoch <tmlcoch@redhat.com>
2016-03-21 15:45:26 -04:00
Mike Bonnet
7aef1232d8 remove use of dict comprehensions to retain python 2.6 support
Dict comprehensions (PEP-274) were added to python 2.7+. The patch that added the --mine
option to list-tasks made use of a dict comprehension, which broke python 2.6 support.
This patch restores the older dict() + list comprehension approach, which restores
support for python 2.6.
2016-03-18 16:47:33 -04:00
Zbigniew Jędrzejewski-Szmek
6e80ecfe16 Add watch-tasks alias
list-tasks wants a matching watch-tasks counterpart.
2016-03-11 15:21:56 -05:00
Zbigniew Jędrzejewski-Szmek
3b8861c78b Implement watch-task --mine, --user, etc
This is useful to e.g. wait on tasks you have fired off without
having to explicitly list their ids. For simplicity,
watch-tasks accepts the same options as list-tasks.
2016-03-11 15:21:56 -05:00
Zbigniew Jędrzejewski-Szmek
79f2fb565d Split out task list retrieval 2016-03-11 14:51:23 -05:00
Mike McLean
736eb068fd add --krbservice cli opt 2016-02-16 12:17:41 -05:00
Pavol Babincak
401e232508 CLI: fix download-task's session typo
Koji CLI calls on like this:

    koji -d download-task $TASK_ID

which involve getTaskChildren() XMLRPC call fail:

    ...
    File "/usr/bin/koji", line 6460, in anon_handle_download_task
        base_task = session.getTaskInfo(base_task_id)
    NameError: global name 'session' is not defined
2016-02-04 11:41:02 -05:00
Mike McLean
709558eaa9 cli: if given an rpm name without --rpm, download the containing build 2016-01-18 16:34:15 -05:00
Mike McLean
393dba2fa9 cli: handle rpms in download-build 2016-01-18 16:34:09 -05:00
Mike McLean
4365699e84 add-pkg: use multicall and ignore existing packages 2016-01-18 16:22:59 -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
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
c8fccdeba5 display task info for regen-repo command 2015-12-04 16:31:55 -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
41237ec6a9 taginfo: return error code if tag does not exist, drop stray newlines 2015-12-01 13:02:31 -05:00
Mike McLean
47189e0c3a Merge branch 'cgen'
Merge in content generator changes

Conflicts:
	hub/kojihub.py
2015-11-18 10:55:21 -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
87fb7f46e9 Merge remote-tracking branch 'origin/master' into cgen 2015-11-17 10:52:42 -05:00
Mike McLean
66c3181781 show extra data in cli. fix cli rpminfo for cg brs 2015-11-01 18:13:29 -05:00
Mike McLean
870638b152 fix python 2.4 incompatibilities in download-task and runroot commands 2015-10-29 21:19:54 -04:00
Mike McLean
95f1182727 show upload progress in import-cg 2015-10-26 16:27:45 -04:00
Mike McLean
2c77d36667 first stab at support metadata only cg imports, plus a few fixes 2015-10-21 12:03:43 -04:00
Mike McLean
445a70b5cb fix up mistakes in cg cli handlers 2015-10-19 15:07:43 -04:00
Mike McLean
bdfcde8604 adjust cg access terminology 2015-10-05 16:22:02 -04:00
Mike McLean
4b0438c8f6 cli for managing cg users 2015-09-30 14:00:35 -04:00
Mike McLean
53642d2031 fix upload path 2015-09-28 23:06:13 -04:00
Mike McLean
f0d112551c work on cg import cli 2015-09-28 19:54:49 -04:00
Mike McLean
d31e774a1c Merge remote-tracking branch 'origin/master' into cgen 2015-09-21 15:43:01 -04:00
Mike McLean
4bb191cbcf check for tag existence in add-pkg 2015-09-21 15:39:27 -04:00
Mike McLean
91c877d359 add/remove user from cg 2015-09-21 15:37:50 -04:00
Mike McLean
77e26b7e19 cgen cli stub 2015-09-21 15:37:50 -04:00
Ian McLeod
ae71801f29 add support for Image Factory generation of VMWare Fusion Vagrant boxes 2015-09-11 15:47:22 -04:00
Dennis Gilmore
8fe713566b cli: rename download-scratch-build to download-task
since you can download any task  not just scratch builds it seems
silly to call it download-scratch-build

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:56:36 -05:00
Dennis Gilmore
4ec6cd34ad koji cli: add download-scratch-build command
patch from Jan Vcelak https://fedorahosted.org/koji/ticket/237

Signed-off-by: Dennis Gilmore <dennis@ausil.us>
2015-07-30 14:34:08 -05:00
Mike McLean
0fb670598b show tag_extra in cli list-history 2015-06-24 09:46:16 -04:00