Package gbp :: Package deb

[hide private]
[frames] | no frames]

# Package deb

provides some debian source package related helpers

Submodules | [hide private]

- gbp.deb.changelog: A Debian Changelog
- gbp.deb.control: A Debian Control file
- gbp.deb.dscfile: provides some debian source package related helpers
- gbp.deb.format: Parse debian/source/format
- gbp.deb.git: A Git Repository that keeps a Debian Package
- gbp.deb.policy: Debian Packaging policies
- gbp.deb.pristinetar: Handle checkin and checkout of archives from the pristine-tar branch
- gbp.deb.source: provides some debian source package related helpers
- gbp.deb.uscan: Interface to uscan

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'