Commit graph

11 commits

Author SHA1 Message Date
Pavol Babincak
9e89ebb9a4 Ran reindent.py from cpython tools on all python scripts
Citing from reindent docs:

    Change Python (.py) files to use 4-space indents and no hard tab
    characters. Also trim excess spaces and tabs from ends of lines, and
    remove empty lines at the end of files.  Also ensure the last line
    ends with a newline.

Citing from PEP 8:

    Use 4 spaces per indentation level.

    Python 2 code indented with a mixture of tabs and spaces should be
    converted to using spaces exclusively.

    Don't write string literals that rely on significant trailing
    whitespace. Such trailing whitespace is visually indistinguishable
    and some editors (or more recently, reindent.py) will trim them.

Also PyLint recommends not to have trailing whitespace on any line.
2015-05-13 16:39:53 -04:00
Pavol Babincak
a80ab75b32 Make koji.plugin.export_in() decorator working
Python raised problem with local variable before:

    UnboundLocalError: local variable 'alias' referenced before
    assignment
2015-04-02 15:56:54 -04:00
Ralph Bean
2ce5ac7d39 Add new {pre,post}RPMSign plugin callbacks.
I'd like to use these in Fedora Infrastructure for the fedmsg plugin so
we can see when rawhide rpms get signed by sigul.
2014-12-12 16:23:52 -05:00
Mike Bonnet
ab53d2deb0 update copyright 2014-10-28 23:54:21 -04:00
Mike Bonnet
b5da4d0587 clean up plugin logging 2013-06-11 19:11:43 -04:00
Mike Bonnet
6bc83b6d93 callback hooks for repo events 2009-11-09 17:46:28 -05:00
Mike Bonnet
7d85a79fab remove the delete hooks, they're handled by the build state-change hooks 2009-11-09 15:57:15 -05:00
Mike Bonnet
9cad397b35 typo 2009-11-09 14:10:26 -05:00
Mike Bonnet
8d18ddbf9f callback hooks for package list actions 2009-11-09 11:08:22 -05:00
Mike Bonnet
ae953a7072 - extend the plugin system with an event-based callback infrastructure
- implement callback hooks for task state transitions
 - example echo plugin that logs all callback invocations
2009-11-09 10:13:21 -05:00
Mike McLean
389aa5ff5c basic plugin support for hub and builders 2008-10-27 12:53:01 -04:00