Create an artificial rpms-checks/ dist-git namespace (in staging).

This commit is contained in:
Ralph Bean 2016-04-07 20:00:05 +00:00
parent 1171a37859
commit 978de21bab
2 changed files with 18 additions and 0 deletions

View file

@ -38,6 +38,7 @@ Here are the different steps of this script:
"""
import copy
import itertools
import multiprocessing.pool
import os
@ -249,6 +250,14 @@ def main():
pkgdb_info = pkgdb_pkg_branch()
{% if env == 'staging' %}
# XXX - Insert an artificial namespace into the set of namespaces returned
# by pkgdb. We want to create a mirror of rpms/PKG in rpms-checks/PKG
# This hack occurs in two places. Here, and in genacls.pkgdb.
# https://github.com/fedora-infra/pkgdb2/issues/329#issuecomment-207050233
pkgdb_info['rpms-checks'] = copy.copy(pkgdb_info['rpms'])
{% endif %}
for ns in pkgdb_info:
namespace = ns
if ns == 'packageAcls':