Package gbp :: Package deb
[hide private]
[frames] | no frames]

Package deb

provides some debian source package related helpers

Submodules [hide private]

Classes [hide private]
  DpkgCompareVersions
Functions [hide private]
 
parse_changelog_repo(repo, branch, filename)
Parse the changelog file from given branch in the git repository.
 
orig_file(cp, compression)
The name of the orig file belonging to changelog cp
 
get_arch()
 
compare_versions(version1, version2)
compares to Debian versionnumbers suitable for sort()
Variables [hide private]
  __package__ = 'gbp.deb'
Function Details [hide private]

parse_changelog_repo(repo, branch, filename)

 

Parse the changelog file from given branch in the git repository.

FIXME: this should use *Vfs methods

orig_file(cp, compression)

 

The name of the orig file belonging to changelog cp

>>> orig_file({'Source': 'foo', 'Upstream-Version': '1.0'}, "bzip2")
'foo_1.0.orig.tar.bz2'
>>> orig_file({'Source': 'bar', 'Upstream-Version': '0.0~git1234'}, "xz")
'bar_0.0~git1234.orig.tar.xz'