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

Module import_orig

Common functionality for import-orig scripts

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, name, version, linkbasepattern)
Create a symlink from archive ti <basename_pattern>.tar.<ext> so pristine-tar will see the correct basename.
 
ask_package_name(default, name_validator_func, err_msg)
Ask the user for the source package name.
 
ask_package_version(default, ver_validator_func, err_msg)
Ask the user for the upstream package version.
 
repacked_tarball_name(source, name, version)
 
repack_source(source, name, version, tmpdir, filters)
Repack the source tree
Variables [hide private]
  __package__ = 'gbp.scripts.common'
Function Details [hide private]

symlink_orig(archive, name, version, linkbasepattern)

 

Create a symlink from archive ti <basename_pattern>.tar.<ext> so pristine-tar will see the correct basename.

Returns: str
archive path to be used by pristine tar

ask_package_name(default, name_validator_func, err_msg)

 

Ask the user for the source package name.

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

ask_package_version(default, ver_validator_func, err_msg)

 

Ask the user for the upstream package version.

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