From d039c44acc06005a5fe6a70323ffd413abb7c044 Mon Sep 17 00:00:00 2001 From: Mohan Boddu Date: Apr 29 2020 18:19:49 +0000 Subject: Allow retirement on epel branches Signed-off-by: Mohan Boddu --- diff --git a/fedpkg/cli.py b/fedpkg/cli.py index 452026b..ede286d 100644 --- a/fedpkg/cli.py +++ b/fedpkg/cli.py @@ -1260,10 +1260,13 @@ class fedpkgClient(cliClient): Runs the rpkg retire command after check. Check includes reading the state of Fedora release. """ - state = get_fedora_release_state(self.config, self.name, self.cmd.branch_merge) - - if state is None or state == 'pending': + if is_epel(self.cmd.branch_merge): super(fedpkgClient, self).retire() else: - self.log.error("Fedora release (%s) is in state '%s' - retire operation " - "is not allowed." % (self.cmd.branch_merge, state)) + state = get_fedora_release_state(self.config, self.name, self.cmd.branch_merge) + + if state is None or state == 'pending': + super(fedpkgClient, self).retire() + else: + self.log.error("Fedora release (%s) is in state '%s' - retire operation " + "is not allowed." % (self.cmd.branch_merge, state))