From 25f48ec7da029db7d9d4fa1aa94b17f0b4066ab3 Mon Sep 17 00:00:00 2001 From: Scott Kitterman <scott@kitterman.com> Date: Sun, 19 May 2013 02:31:58 -0400 Subject: [PATCH] When X(S)-Python-Version or debian/pyversions is not present, do not describe them as missing, just indicate they are not there --- debian/changelog | 5 +++++ debian/pyversions.py | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 3ae4aa7..c28223f 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,11 +1,16 @@ python-defaults (2.7.5-1) UNRELEASED; urgency=low + [ Matthias Klose ] * Bump version to 2.7.5. * Drop python2.6 as a supported python version. * Bump standards version to 3.9.4. * Start building the libpython-stdlib, libpython-all-dev, libpython-all-dbg packages. + [ Scott Kitterman ] + * When X(S)-Python-Version or debian/pyversions is not present, do not + describe them as missing, just indicate they are not there + -- Matthias Klose <doko@debian.org> Wed, 15 May 2013 21:55:11 +0200 python-defaults (2.7.3-13) experimental; urgency=low diff --git a/debian/pyversions.py b/debian/pyversions.py index e58babc..602ce12 100644 --- a/debian/pyversions.py +++ b/debian/pyversions.py @@ -278,11 +278,11 @@ def extract_pyversion_attribute(fn, pkg): if pkg == 'Source': if sversion == None: raise MissingVersionValueError, \ - 'missing X(S)-Python-Version in control file' + 'no X(S)-Python-Version in control file' return sversion if version == None: raise MissingVersionValueError, \ - 'missing XB-Python-Version for package `%s' % pkg + 'no XB-Python-Version for package `%s' % pkg return version # compatibility functions to parse debian/pyversions -- GitLab