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

Module import_orig

Import a new upstream version into a git repository

Functions [hide private]
str
symlink_orig(archive, pkg, version)
Create a symlink from archive ti <pkg>_<version>.orig.tar.<ext> so pristine-tar will see the correct basename.
 
upstream_import_commit_msg(options, version)
 
detect_name_and_version(repo, source, options)
string
find_source(options, args)
Find the tarball to import - either via uscan or via command line argument
 
set_bare_repo_options(options)
Modify options for import into a bare repository
 
parse_args(argv)
 
main(argv)
Variables [hide private]
  __package__ = 'gbp.scripts'
Function Details [hide private]

symlink_orig(archive, pkg, version)

 

Create a symlink from archive ti <pkg>_<version>.orig.tar.<ext> so pristine-tar will see the correct basename.

Returns: str
archive path to be used by pristine tar

find_source(options, args)

 

Find the tarball to import - either via uscan or via command line argument

Returns: string
upstream source filename or None if nothing to import
Raises:
  • GbpError - raised on all detected errors