update readme

This commit is contained in:
Nathan J. Mehl 2017-06-12 07:35:27 -07:00
parent c12f30f623
commit 520d7cbf3a
1 changed files with 9 additions and 3 deletions

View File

@ -90,11 +90,17 @@ Get the components of the package version
Get an arbitrary control header, case-independent
-------------------------------------------------
>>> dp.get_header('version')
>>> d.version
u'1:0.0.0-test'
>>> dp.get_header('VERSION')
>>> d.VERSION
u'1:0.0.0-test'
>>> d.description
u'testdeb\n a bogus debian package for testing dpkg builds'
>>> d.get('nosuchheader', 'default')
'default'
Compare current version to a candidate version
----------------------------------------------