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

@ -5,6 +5,7 @@
# Takes no arguments! # Takes no arguments!
# #
import copy
import grp import grp
import sys import sys
@ -69,6 +70,14 @@ if __name__ == '__main__':
#print ' RW private- = @all' #print ' RW private- = @all'
# dont' enable the above until we prevent building for real from private- # dont' enable the above until we prevent building for real from private-
{% 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 the branch-creation script.
# https://github.com/fedora-infra/pkgdb2/issues/329#issuecomment-207050233
data['rpms-checks'] = copy.copy(data['rpms'])
{% endif %}
# Get a list of all the packages # Get a list of all the packages
for key in data: for key in data:
if key == 'title': if key == 'title':

View file

@ -38,6 +38,7 @@ Here are the different steps of this script:
""" """
import copy
import itertools import itertools
import multiprocessing.pool import multiprocessing.pool
import os import os
@ -249,6 +250,14 @@ def main():
pkgdb_info = pkgdb_pkg_branch() 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: for ns in pkgdb_info:
namespace = ns namespace = ns
if ns == 'packageAcls': if ns == 'packageAcls':