# `gbp.scripts.import_srpm` module documentation

Part of `gbp.scripts`

Import an RPM source package into a Git repository

Variable | no_packaging_branch_msg | Undocumented
Class | SkipImport | Nothing imported
Function | download_file | Download a remote file
Function | download_source | Download package from a remote location
Function | committer_from_author | Get committer info based on options
Function | move_tag_stamp | Move tag out of the way appending the current timestamp
Function | set_bare_repo_options | Modify options for import into a bare repository
Function | force_to_branch_head | Checkout branch and reset --hard
Function | build_parser | Construct command line parser
Function | parse_args | Parse commandline arguments
Function | main | Main function of the git-import-srpm script

no_packaging_branch_msg =
Undocumented
(type: `str`)
def download_file(target_dir, url):

Download a remote file

def download_source(pkg):

Download package from a remote location

def committer_from_author(author, options):

Get committer info based on options

def move_tag_stamp(repo, tag_format, tag_str_fields):

Move tag out of the way appending the current timestamp

def set_bare_repo_options(options):

Modify options for import into a bare repository

def force_to_branch_head(repo, branch):

Checkout branch and reset --hard

def build_parser(name):

Construct command line parser

def parse_args(argv):

Parse commandline arguments

def main(argv):

Main function of the git-import-srpm script