module documentation

Import a Debian source package into a Git repository

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

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

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

apply the debian patch and tag appropriately

def apply_patch(diff):

Apply patch to a source tree

def build_parser(name):

Undocumented

def check_parents(repo, branch, tag):

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

def create_missing_branch(repo, branch, options, err_msg):

Undocumented

def disable_pristine_tar(options, reason):

Disable pristine tar if enabled

def download_source(pkg, dirs, unauth):

Undocumented

def get_author_from_changelog(dir):

Get author from debian/changelog

def get_changes(dir, repo, debian_branch):

Undocumented

def get_committer_from_author(author, options):

Based on the options fill in the committer

def import_native(repo, source, dsc, options):

Undocumented

def import_upstream(repo, source, dsc, options):

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 main(argv):

Undocumented

def move_tag_stamp(repo, format, version):

Move tag out of the way appending the current timestamp

def parse_all(argv):

Undocumented

def parse_args(argv):

Undocumented

def print_dsc(dsc):

Undocumented