[Reportbug-commits] [reportbug] 01/05: Rename SUITES2DISTS variable to CODENAME2SUITE as name is incorrect.
Sandro Tosi
morph at moszumanska.debian.org
Wed Dec 16 06:39:45 UTC 2015
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository reportbug.
commit cae9a27eefe04cea7fd8a910e31efa4cea6efd18
Author: Paul Wise <pabs at debian.org>
Date: Sun Oct 18 11:03:25 2015 +0800
Rename SUITES2DISTS variable to CODENAME2SUITE as name is incorrect.
The variable maps codenames like jessie to suites like stable.
Also adjust the comment.
---
reportbug/checkversions.py | 2 +-
reportbug/utils.py | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/reportbug/checkversions.py b/reportbug/checkversions.py
index bb7a3fd..b04f46b 100644
--- a/reportbug/checkversions.py
+++ b/reportbug/checkversions.py
@@ -134,7 +134,7 @@ def get_versions_available(package, timeout, dists=None, http_proxy=None, arch='
if len(l) != 4:
continue
# map suites name (returned by madison) to dist name
- dist = utils.SUITES2DISTS.get(l[2], l[2])
+ dist = utils.CODENAME2SUITE.get(l[2], l[2])
versions[dist] = l[1]
return versions
diff --git a/reportbug/utils.py b/reportbug/utils.py
index 2b4d64c..aaabd40 100644
--- a/reportbug/utils.py
+++ b/reportbug/utils.py
@@ -89,8 +89,8 @@ NEWBIELINE = """Dear Maintainer,
fhs_directories = ['/', '/usr', '/usr/share', '/var', '/usr/X11R6',
'/usr/man', '/usr/doc', '/usr/bin']
-# A map between suites and distributions names
-SUITES2DISTS = {'squeeze': 'oldoldstable',
+# A map between codenames and suites
+CODENAME2SUITE = {'squeeze': 'oldoldstable',
'wheezy': 'oldstable',
'jessie': 'stable',
'stretch': 'testing',
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reportbug/reportbug.git
More information about the Reportbug-commits
mailing list