Merge pull request #3 from TheClimateCorporation/fix-get-header

fix get_header, which was doing the opposite of what it claimed
This commit is contained in:
memory 2017-06-09 10:50:49 -07:00 committed by GitHub
commit a30e610525
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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',