diff options
| author | Jesse Keating <jkeating at redhat dot com> | 2007-05-16 19:36:44 -0400 |
|---|---|---|
| committer | Jesse Keating <jkeating at redhat dot com> | 2007-05-16 19:36:44 -0400 |
| commit | d9b62d2ace62d218fc42554fefe6b2addea7fd2d (patch) | |
| tree | b55d6489cb839e722109d396847021dffca05f54 /scripts | |
| parent | 0f08b874606f5d8b476f9d92f2e1ebe5a9d4a89b (diff) | |
| download | releng-d9b62d2ace62d218fc42554fefe6b2addea7fd2d.tar.gz releng-d9b62d2ace62d218fc42554fefe6b2addea7fd2d.tar.xz releng-d9b62d2ace62d218fc42554fefe6b2addea7fd2d.zip | |
Add appropriate attributes to script
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/sign_unsigned.py | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/scripts/sign_unsigned.py b/scripts/sign_unsigned.py index b30b6e5..6468d54 100755 --- a/scripts/sign_unsigned.py +++ b/scripts/sign_unsigned.py @@ -13,6 +13,14 @@ import optparse import inspect import getpass +# AbstractTool class +# parent for all classes, just to define the options only once +# +# Copyright (c) 2006 Red Hat +# +# Authors: +# Daniel Mach <dmach@redhat.com> + class AbstractTool: def __init__(self): # create 'options' instance just once @@ -25,6 +33,12 @@ class AbstractTool: self.options.show_time = False self.options.retries = 5 +# CliTool +# Copyright (c) 2006 Red Hat +# +# Authors: +# Daniel Mach <dmach@redhat.com> + class CliTool(AbstractTool): def __init__(self, opts=None): @@ -282,6 +296,15 @@ class CliTool(AbstractTool): self.print_msg("ERROR: There's definitely something wrong with the script, even the default command handler is missing!") sys.exit(1) +# KojiTool class +# interface to Koji +# +# Copyright (c) 2007 Red Hat +# +# Authors: +# Daniel Mach <dmach@redhat.com> +# Jesse Keating <jkeating@redhat.com> + class KojiTool(AbstractTool): def __init__(self,): AbstractTool.__init__(self) |
