Make sure to correctly escape package names, like atari++.
This commit is contained in:
parent
69c915f7cb
commit
a54bff964f
1 changed files with 8 additions and 5 deletions
|
@ -494,12 +494,15 @@ def _is_retired_in_pdc(product, project):
|
||||||
lead = PRODUCTS_TO_LEAD_BRANCH[product]
|
lead = PRODUCTS_TO_LEAD_BRANCH[product]
|
||||||
type = PDC_TYPES[project['namespace']]
|
type = PDC_TYPES[project['namespace']]
|
||||||
name = project['name']
|
name = project['name']
|
||||||
pdc_url = '{0}/component-branches/?global_component={1}&type={2}&name={3}'\
|
pdc_url = '{0}/component-branches/'.format(PDCURL.rstrip('/'))
|
||||||
.format(PDCURL.rstrip('/'), name, type, lead)
|
params = dict(
|
||||||
|
global_component=name,
|
||||||
|
type=type,
|
||||||
|
name=lead,
|
||||||
|
)
|
||||||
if DRY_RUN:
|
if DRY_RUN:
|
||||||
print('Querying {0}'.format(pdc_url))
|
print('Querying {0} {1}'.format(pdc_url, params))
|
||||||
pdc_rv = session.get(pdc_url, timeout=30)
|
pdc_rv = session.get(pdc_url, params=params, timeout=30)
|
||||||
if not pdc_rv.ok:
|
if not pdc_rv.ok:
|
||||||
raise RuntimeError("Could not find %r in PDC." % project)
|
raise RuntimeError("Could not find %r in PDC." % project)
|
||||||
branches = pdc_rv.json()['results']
|
branches = pdc_rv.json()['results']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue