From f34e875c8367420614e7f646ef18166448747573 Mon Sep 17 00:00:00 2001 From: "Nathan J. Mehl" Date: Fri, 9 Jun 2017 08:51:29 -0700 Subject: [PATCH] fix get_header, which was doing the opposite of what it claimed --- pydpkg/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pydpkg/__init__.py b/pydpkg/__init__.py index 865eca3..2c23bc2 100644 --- a/pydpkg/__init__.py +++ b/pydpkg/__init__.py @@ -141,7 +141,7 @@ class Dpkg(object): def get_header(self, header): """ case-independent query for a control message header value """ - return self.headers.get(header.lower(), '') + return self.message.get(header) def compare_version_with(self, version_str): """Compare my version to an arbitrary version""" diff --git a/setup.py b/setup.py index beb9cdb..fd8da4d 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from distutils.core import setup setup( name='pydpkg', packages=['pydpkg'], # this must be the same as the name above - version='1.1', + version='1.1.1', description='A python library for parsing debian package control headers and comparing version strings', author='Nathan J. Mehl', author_email='n@climate.com',