From 293dc31427d55961222534ae26e8a97aed2d77a1 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sep 28 2016 20:14:32 +0000 Subject: enable target dest for rawhide to have trailing pieces We want to make changes in fedora to enable build gating, either for signing, automated QA or both. we attempted to implement automated signing and hit a snag. When the target pointed to f26-pending the disttag for teh build nvr ended up being .fc26-pending in order to enable flexibility we should split on - and take the value from the - Signed-off-by: Dennis Gilmore --- diff --git a/src/fedpkg/__init__.py b/src/fedpkg/__init__.py index ef39125..a0658c9 100644 --- a/src/fedpkg/__init__.py +++ b/src/fedpkg/__init__.py @@ -214,7 +214,7 @@ class Commands(pyrpkg.Commands): if self._kojisession: rawhidetarget = self.kojisession.getBuildTarget('rawhide') desttag = rawhidetarget['dest_tag_name'] - return desttag.replace('f', '') + return desttag.split('-')[0].replace('f', '') # Create a list of "fedoras" fedoras = []