add a mapping for koji tags to pkgdb names for rawhide

deal with fedora better

Signed-off-by: Dennis Gilmore <ausil@fedoraproject.org>
This commit is contained in:
Dennis Gilmore 2016-03-05 18:54:21 +00:00
parent 5be2c81900
commit 47f99ffa18

View file

@ -29,6 +29,7 @@ sys.path.append('.')
import koji
rawhide = '25'
extraArchList = {'kernel': ('i586', 'i686', 'noarch'),
'kernel-xen-2.6': ('i586', 'i686', 'noarch'),
'glibc': ('i686',),
@ -81,6 +82,8 @@ if __name__ == '__main__':
if tag.startswith('epel'):
version = tag.split('epel')[1]
elif tag.startswith('f'):
version = tag.split('f')[1]
else:
version = tag.split('-')[1][:-1]
@ -102,8 +105,11 @@ if __name__ == '__main__':
reponame = 'el%s' % version
arches = ["primary"]
else:
# Fedora
reponame = tag
# Fedora
if version == rawhide:
reponame = 'master'
else:
reponame = tag
{% if env == 'staging' %}
arches = ["primary"]
{% else %}