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:
parent
5be2c81900
commit
47f99ffa18
1 changed files with 8 additions and 2 deletions
|
@ -29,6 +29,7 @@ sys.path.append('.')
|
||||||
|
|
||||||
import koji
|
import koji
|
||||||
|
|
||||||
|
rawhide = '25'
|
||||||
extraArchList = {'kernel': ('i586', 'i686', 'noarch'),
|
extraArchList = {'kernel': ('i586', 'i686', 'noarch'),
|
||||||
'kernel-xen-2.6': ('i586', 'i686', 'noarch'),
|
'kernel-xen-2.6': ('i586', 'i686', 'noarch'),
|
||||||
'glibc': ('i686',),
|
'glibc': ('i686',),
|
||||||
|
@ -81,6 +82,8 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
if tag.startswith('epel'):
|
if tag.startswith('epel'):
|
||||||
version = tag.split('epel')[1]
|
version = tag.split('epel')[1]
|
||||||
|
elif tag.startswith('f'):
|
||||||
|
version = tag.split('f')[1]
|
||||||
else:
|
else:
|
||||||
version = tag.split('-')[1][:-1]
|
version = tag.split('-')[1][:-1]
|
||||||
|
|
||||||
|
@ -102,8 +105,11 @@ if __name__ == '__main__':
|
||||||
reponame = 'el%s' % version
|
reponame = 'el%s' % version
|
||||||
arches = ["primary"]
|
arches = ["primary"]
|
||||||
else:
|
else:
|
||||||
# Fedora
|
# Fedora
|
||||||
reponame = tag
|
if version == rawhide:
|
||||||
|
reponame = 'master'
|
||||||
|
else:
|
||||||
|
reponame = tag
|
||||||
{% if env == 'staging' %}
|
{% if env == 'staging' %}
|
||||||
arches = ["primary"]
|
arches = ["primary"]
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue