Drop a noisy print statement from pagure-sync-bugzilla.py.j2
https://pagure.io/fedora-infrastructure/issue/6429
This commit is contained in:
parent
d6ec87fb98
commit
48db25c0e6
1 changed files with 5 additions and 2 deletions
|
@ -534,8 +534,11 @@ def _is_retired_in_pdc(product, project):
|
||||||
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']
|
||||||
if not branches:
|
if not branches:
|
||||||
print("No results for %r in PDC." % project, file=sys.stderr)
|
if DRY_RUN:
|
||||||
# Assume it's not retired if we can't find out for sure
|
print("No results for %s in PDC." % pdc_rv.request.url)
|
||||||
|
# Default to "not retired" if we have no explicit entry. This is the
|
||||||
|
# case for an 'el6' branch of a package which has no el6 branch. It
|
||||||
|
# isn't technically retired, because it never reall existed!
|
||||||
return False
|
return False
|
||||||
return not branches[0]['active']
|
return not branches[0]['active']
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue