8000 Remove register_retire from rfpkg · eclipseo/rfpkg@7095c31 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7095c31

Browse files
author
Robert-André Mauchin
committed
Remove register_retire from rfpkg
Don't register again the retire command as it is already done by pyrpkg. Starting Python 3.11, it creates an error. See python/cpython#18605 Fix rpmfusion-infra#24
1 parent b1284ae commit 7095c31

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

rfpkg/cli.py

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,15 @@ def setup_argparser(self):
5151
def setup_fed_subparsers(self):
5252
"""Register the fedora 8000 specific targets"""
5353

54-
self.register_retire()
54+
# Don't register again the retire command as it is already done
55+
# by pyrpkg. Starting Python 3.11, it creates an error.
56+
# https://github.com/python/cpython/pull/18605
57+
#self.register_retire()
5558

5659
# Don't register the update command, as rpmfusion does not have a
5760
# bodhi instance to send update requests to
5861
#self.register_update()
5962

60-
# Target registry goes here
61-
def register_retire(self):
62-
"""Register the retire target"""
63-
64-
retire_parser = self.subparsers.add_parser(
65-
'retire',
66-
help='Retire a package',
67-
description='This command will remove all files from the repo, '
68-
'leave a dead.package file, push the changes and '
69-
'retire the package in pkgdb.'
70-
)
71-
retire_parser.add_argument('reason',
72-
help='Reason for retiring the package')
73-
retire_parser.set_defaults(command=self.retire)
74-
7563
# Target functions go here
7664
def _format_update_clog(self, clog):
7765
''' Format clog for the update template. '''

0 commit comments

Comments
 (0)
0