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

Module import_orig

Import a new upstream version into a git repository

Classes [hide private]
  OrigUpstreamSource
Upstream source that will be imported
Functions [hide private]
 
cleanup_tmp_tree(tree)
remove a tree of temporary files
 
is_link_target(target, link)
does symlink link already point to target?
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)
 
ask_package_name(default)
Ask the user for the source package name.
 
ask_package_version(default)
Ask the user for the upstream package version.
string
find_source(options, args)
Find the tarball to import - either via uscan or via command line argument
 
repacked_tarball_name(source, name, version)
 
repack_source(source, name, version, tmpdir, filters)
Repack the source tree
 
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

ask_package_name(default)

 

Ask the user for the source package name.

Parameters:
  • default - The default package name to suggest to the user.

ask_package_version(default)

 

Ask the user for the upstream package version.

Parameters:
  • default - The default package version to suggest to the user.

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