From 8b3983597a68c9b0e9e09063eea1ef1259d027b0 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Nov 15 2018 23:03:05 +0000 Subject: take the target from the DistGitDir, it knows how to generate that --- diff --git a/src/centpkg/__init__.py b/src/centpkg/__init__.py index 57ed5fd..166ad6b 100644 --- a/src/centpkg/__init__.py +++ b/src/centpkg/__init__.py @@ -140,14 +140,7 @@ class Commands(Commands): def load_target(self): """ This sets the target attribute (used for mock and koji) """ - # Distribution branches start with c and may or may not end in -plus - # otherwise, it's a sig branch - if not self.distgitdir.distrobranch: - # send distribution packages to build on the the bananas tags for now - self._target = 'bananas{0}-{1}'.format(self.distval, self.disttag) - else: - # sig packages are built in the tag that matches the git branch - self._target = self.distgitdir.target + self._target = self.distgitdir.target def load_user(self): try: