summaryrefslogtreecommitdiffstats
path: root/src/fedpkg.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/fedpkg.py')
-rwxr-xr-xsrc/fedpkg.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/fedpkg.py b/src/fedpkg.py
index 20dc774..5f3219e 100755
--- a/src/fedpkg.py
+++ b/src/fedpkg.py
@@ -630,6 +630,15 @@ def push(args):
log.error('Could not push: %s' % e)
sys.exit(1)
+def retire(args):
+ try:
+ pyfedpkg.retire(args.path, args.msg)
+ except pyfedpkg.FedpkgError, e:
+ log.error('Could not retire package: %s' % e)
+ sys.exit(1)
+ if args.push:
+ push()
+
def scratchbuild(args):
# A scratch build is just a build with --scratch
args.scratch = True
@@ -1081,6 +1090,18 @@ packages will be built sequentially.
help = 'Push changes to remote repository')
parser_push.set_defaults(command = push)
+ # retire stuff
+ parser_retire = subparsers.add_parser('retire',
+ help = 'Retire a package')
+ parser_retire.add_argument('-p', '--push',
+ default = False,
+ action = 'store_true',
+ help = 'Push changes to remote repository')
+ parser_retire.add_argument('msg',
+ nargs = '?',
+ help = 'Message for retiring the package')
+ parser_retire.set_defaults(command = retire)
+
# scratch build
parser_scratchbuild = subparsers.add_parser('scratch-build',
help = 'Request scratch build',