Import a Debian source package into a Git repository

Class SkipImport Undocumented
Function download_source Undocumented
Function apply_patch Apply patch to a source tree
Function apply_deb_tgz Apply .debian.tar.gz (V3 source format)
Function get_changes Undocumented
Function get_author_from_changelog Get author from debian/changelog
Function get_committer_from_author Based on the options fill in the committer
Function check_parents Check if the upstream tag is already merged, if not, return the additional parent to merge
Function apply_debian_patch apply the debian patch and tag appropriately
Function create_missing_branch Undocumented
Function import_native Undocumented
Function import_upstream Undocumented
Function print_dsc Undocumented
Function move_tag_stamp Move tag out of the way appending the current timestamp
Function disable_pristine_tar Disable pristine tar if enabled
Function build_parser Undocumented
Function parse_args Undocumented
Function is_download No summary
Function parse_all Undocumented
Function main Undocumented
def download_source(pkg, dirs, unauth):
Undocumented
def apply_patch(diff):

Apply patch to a source tree

def apply_deb_tgz(deb_tgz, filters):

Apply .debian.tar.gz (V3 source format)

def get_changes(dir, repo, debian_branch):
Undocumented
def get_author_from_changelog(dir):

Get author from debian/changelog

def get_committer_from_author(author, options):

Based on the options fill in the committer

def check_parents(repo, branch, tag):

Check if the upstream tag is already merged, if not, return the additional parent to merge

def apply_debian_patch(repo, source, dsc, upstream_commit, options):

apply the debian patch and tag appropriately

def create_missing_branch(repo, branch, options):
Undocumented
def import_native(repo, source, dsc, options):
Undocumented
def import_upstream(repo, source, dsc, options):
Undocumented
def print_dsc(dsc):
Undocumented
def move_tag_stamp(repo, format, version):

Move tag out of the way appending the current timestamp

def disable_pristine_tar(options, reason):

Disable pristine tar if enabled

def build_parser(name):
Undocumented
def parse_args(argv):
Undocumented
def is_download(pkg):
>>> is_download("http://foo.example.com/apackage.dsc")
(True, 'http://foo.example.com/apackage.dsc')
>>> is_download("apt:///apackage/sid")
(True, 'apackage/sid')
>>> is_download("apt://apackage/sid")
(True, 'apackage/sid')
>>> is_download("apt:apackage/sid")
(True, 'apackage/sid')
>>> is_download("apt_1.0_amd64.dsc")
(False, 'apt_1.0_amd64.dsc')
>>> is_download("file:///foo/apackage.dsc")
(False, '/foo/apackage.dsc')
def parse_all(argv):
Undocumented
def main(argv):
Undocumented
API Documentation for git-buildpackage, generated by pydoctor at 2021-02-01 08:15:22.