summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index d267559..411e128 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -448,6 +448,16 @@ def commit(args):
if args.push:
push(args)
+def retire(args):
+ try:
+ mymodule = pyfedpkg.PackageModule(args.path)
+ mymodule.retire(args.message)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not reitre package: %s' % e)
+ sys.exit(1)
+ if args.push:
+ push(args)
+
def compile(args):
arch = None
short = False
@@ -950,6 +960,18 @@ packages will be built sequentially.
help = 'Alias for commit')
parser_ci.set_defaults(command = commit)
+ # retire stuff
+ parser_retire = subparsers.add_parser('retire',
+ help = 'Retire a Fedora package')
+ parser_retire.add_argument('-m', '--message',
+ default = None,
+ help = 'Message describing the reason of retireing')
+ parser_retire.add_argument('-p', '--push',
+ default = False,
+ action = 'store_true',
+ help = 'Push the retired package to the remote repository')
+ parser_retire.set_defaults(command = retire)
+
# compile locally
parser_compile = subparsers.add_parser('compile',
help = 'Local test rpmbuild compile')