[Reproducible-commits] [misc] 01/05: Make these globals uppercase

Chris Lamb lamby at moszumanska.debian.org
Tue Jul 28 15:33:27 UTC 2015


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

lamby pushed a commit to branch master
in repository misc.

commit 087c68a41bd804d6f37b6f6d1991e5138d64d589
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jul 28 16:20:21 2015 +0100

    Make these globals uppercase
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 clean-notes | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/clean-notes b/clean-notes
index 480899d..df8e0aa 100755
--- a/clean-notes
+++ b/clean-notes
@@ -20,10 +20,10 @@ import requests
 
 from apt_pkg import version_compare
 
-reproducible_json = 'https://reproducible.debian.net/reproducible.json'
+REPRODUCIBLE_JSON = 'https://reproducible.debian.net/reproducible.json'
 # [{package: xxx, suite: sid, version: 0.0.0, status: reproducible}, {...}]
 
-notes_yaml = 'packages.yml'
+NOTES_YAML = 'packages.yml'
 # {package_name: {version: 0.0.0, comments: "blablabla", bugs: [111, 222],
 #  issues: [issue1, issue2]}, {...}}
 
@@ -179,7 +179,7 @@ def load_reproducible_status():
         with open('reproducible.json') as fd:
             rstatus = json.load(fd)
     except FileNotFoundError:
-        r = requests.get(reproducible_json)
+        r = requests.get(REPRODUCIBLE_JSON)
         rstatus = r.json()
     for item in rstatus:
         pkg = item['package']
@@ -207,7 +207,7 @@ def load_reproducible_status():
 
 
 def load_notes():
-    with open(notes_yaml, encoding='utf-8') as fd:
+    with open(NOTES_YAML, encoding='utf-8') as fd:
         return yaml.safe_load(fd)
 
 
@@ -418,7 +418,7 @@ def write_out(notes):
             out += "  bugs:\n"
             for bug in values['bugs']:
                 out += "    - %s\n" % bug
-    with open(notes_yaml, 'wb') as fd:
+    with open(NOTES_YAML, 'wb') as fd:
         fd.write(out.encode('utf-8'))
 
 if __name__ == '__main__':

-- 
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