From ac05cd670fcf6a039aece97891821f7b1756864f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20O=C5=BCarowski?= <piotr@debian.org> Date: Sun, 21 Oct 2012 22:27:15 +0200 Subject: [PATCH] pyversions.py: fix parsing DEBPYTHON_SUPPORTED env. variable versions should be separated using comma, as in debian_defaults config file --- debian/changelog | 3 +++ debian/pyversions.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 425d247..baf61c4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,9 @@ python-defaults (2.7.3-3) UNRELEASED; urgency=low python3-* ones - TODO: parse interpreter version number from --shebang option and add apropriate dependency/rt* script arguments + * pyversions.py: fix parsing DEBPYTHON_SUPPORTED env. variable + (versions should be separated using comma, as in debian_defaults + config file) [ Dmitry Shachnev ] * debian/python.{pre,post}rm.in: Handle purge command the same way as diff --git a/debian/pyversions.py b/debian/pyversions.py index 907beeb..e58babc 100644 --- a/debian/pyversions.py +++ b/debian/pyversions.py @@ -110,8 +110,9 @@ def unsupported_versions(version_only=False): else: return _unsupported_versions -_supported_versions = ["python%s" % ver for ver in \ - os.environ.get('DEBPYTHON_SUPPORTED', '').split()] +_supported_versions = ["python%s" % ver.strip() for ver in + os.environ.get('DEBPYTHON_SUPPORTED', '').split(',') + if ver.strip()] def supported_versions(version_only=False): global _supported_versions if not _supported_versions: -- GitLab