From 48db25c0e6c2cfc27d49ccac5b78db41fa710fdf Mon Sep 17 00:00:00 2001 From: Ralph Bean Date: Mon, 23 Oct 2017 18:24:46 +0000 Subject: [PATCH] Drop a noisy print statement from pagure-sync-bugzilla.py.j2 https://pagure.io/fedora-infrastructure/issue/6429 --- roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 index 476df0e7ae..ca3bfad689 100644 --- a/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 +++ b/roles/distgit/pagure/templates/pagure-sync-bugzilla.py.j2 @@ -534,8 +534,11 @@ def _is_retired_in_pdc(product, project): raise RuntimeError("Could not find %r in PDC." % project) branches = pdc_rv.json()['results'] if not branches: - print("No results for %r in PDC." % project, file=sys.stderr) - # Assume it's not retired if we can't find out for sure + if DRY_RUN: + 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 not branches[0]['active']