set the disttag based on the sig branch

This commit is contained in:
Brian Stinson 2014-11-23 22:54:49 -06:00
parent 3d42683a55
commit f12d463d98

View file

@ -57,7 +57,12 @@ class Commands(pyrpkg.Commands):
' %s' % self.branch_merge)
self._distval = osver
self._distval = self._distval.replace('.', '_')
self._disttag = 'el%s' % self._distval
if self._is_sigbranch():
self._disttag = self.branch_merge
else:
self._disttag = 'el%s' % self._distval
self._rpmdefines = ["--define '_topdir {0}'".format(self.path),
"--define '_srcrpmdir {0}'".format(self.path),
"--define '_rpmdir {0}'".format(self.path),