[Reproducible-commits] [misc] 01/02: clean-notes: parametrize https://reproducible.debian.net as RB_SITE

Mattia Rizzolo mattia at mapreri.org
Sat Sep 12 12:56:46 UTC 2015


This is an automated email from the git hooks/post-receive script.

mapreri-guest pushed a commit to branch master
in repository misc.

commit 557c036709fc8563ae0b8ba993d1ac736f367f89
Author: Mattia Rizzolo <mattia at mapreri.org>
Date:   Sat Sep 12 12:56:20 2015 +0000

    clean-notes: parametrize https://reproducible.debian.net as RB_SITE
---
 clean-notes | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/clean-notes b/clean-notes
index 262cea5..fbee150 100755
--- a/clean-notes
+++ b/clean-notes
@@ -22,7 +22,9 @@ from apt_pkg import version_compare
 # _system not initialized" error.
 apt = apt
 
-REPRODUCIBLE_JSON = 'https://reproducible.debian.net/reproducible.json'
+RB_SITE = 'https://reproducible.debian.net'
+
+REPRODUCIBLE_JSON = '{}/reproducible.json'.format(RB_SITE)
 # [{package: xxx, suite: sid, version: 0.0.0, status: reproducible}, {...}]
 
 NOTES_YAML = 'packages.yml'
@@ -303,9 +305,8 @@ def find_old_notes(testedpkgs, notes):
            (notes[pkg].get('issues') and
             'timestamps_in_png' not in notes[pkg]['issues']) and \
            'fixed-magically' not in args.disable:
-            log.info("https://reproducible.debian.net/%s has a note for the "
-                     "version %s but that version is reproducible",
-                     pkg, item['version'])
+            log.info("%s has a note for the version %s but that version is "
+                     "reproducible", RB_SITE, pkg, item['version'])
         if item['status'] == 'reproducible' and \
             notes[pkg].get('version') and \
             'now-fixed' not in args.disable and \
@@ -348,8 +349,8 @@ def detect_archived_bugs(notes):
             for bug in notes[pkg]['bugs']:
                 if bug in rows:
                     log.warning(
-                        'https://bugs.debian.org/%s in %s is archived',
-                        bug, pkg)
+                        'https://bugs.debian.org/%s in %s/%s is archived',
+                        bug, RB_SITE, pkg)
         except KeyError:
             pass
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list