Package gbp :: Package scripts :: Module import_srpm
[hide private]
[frames] | no frames]

Module import_srpm

Import an RPM source package into a GIT repository

Classes [hide private]
  SkipImport
Nothing imported
  PatchImportError
Patch import failed
Functions [hide private]
 
download_file(target_dir, url)
Download a remote file
 
download_source(pkg, dirs)
Download package from a remote location
 
committer_from_author(author, options)
Get committer info based on options
 
move_tag_stamp(repo, tag_format, tag_str_fields)
Move tag out of the way appending the current timestamp
 
set_bare_repo_options(options)
Modify options for import into a bare repository
 
import_spec_patches(repo, spec, dirs)
Import patches from a spec file to the current branch
 
force_to_branch_head(repo, branch)
 
parse_args(argv)
Parse commandline arguments
 
main(argv)
Main function of the git-import-srpm script
Variables [hide private]
  no_packaging_branch_msg = '\nRepository does not have branch \...
  PATCH_AUTODELETE_COMMIT_MSG = '\nAutoremove imported patches f...
  __package__ = 'gbp.scripts'
Variables Details [hide private]

no_packaging_branch_msg

Value:
'''
Repository does not have branch \'%s\' for packaging/distribution sour\
ces. If there is none see
file:///usr/share/doc/git-buildpackage/manual-html/gbp.import.html#GBP\
.IMPORT.CONVERT
on howto create it otherwise use --packaging-branch to specify it.
'''

PATCH_AUTODELETE_COMMIT_MSG

Value:
'''
Autoremove imported patches from packaging

Removed all imported patches from %s
and patch files from the packaging dir.
'''