Import a new upstream version into a Git repository
Function | prepare_pristine_tar | Prepare the upstream source for pristine tar import. |
Function | upstream_import_commit_msg | Undocumented |
Function | detect_name_and_version | Undocumented |
Function | find_upstream | No summary |
Function | debian_branch_merge | Undocumented |
Function | postimport_hook | Undocumented |
Function | postunpack_hook | Undocumented |
Function | is_30_quilt | Undocumented |
Function | debian_branch_merge_by_auto | Undocumented |
Function | debian_branch_merge_by_replace | Undocumented |
Function | debian_branch_merge_by_merge | Undocumented |
Function | unpack_tarballs | Undocumented |
Function | set_bare_repo_options | Modify options for import into a bare repository |
Function | rollback | Undocumented |
Function | build_parser | Undocumented |
Function | parse_args | Parse the command line arguments @return: options and arguments |
Function | main | Undocumented |
Prepare the upstream source for pristine tar import. This checks if the upstream source is actually a tarball and creates a symlink from I{archive} to I{<pkg>_<version>.orig.tar.<ext>} so pristine-tar will see the correct basename. @param archive: the upstream source's name @type archive: C{str} @param pkg: the source package's name @type pkg: C{str} @param version: the upstream version number @type version: C{str} @rtype: C{str}
Find the main tarball to import - either via uscan or via command line argument @return: upstream source filename or None if nothing to import @rtype: string @raise GbpError: raised on all detected errors >>> find_upstream(False, ['too', 'many']) Traceback (most recent call last): ... gbp.errors.GbpError: More than one archive specified. Try --help. >>> find_upstream(False, []) Traceback (most recent call last): ... gbp.errors.GbpError: No archive to import specified. Try --help. >>> find_upstream(True, ['tarball']) Traceback (most recent call last): ... gbp.errors.GbpError: you can't pass both --uscan and a filename. >>> find_upstream(False, ['tarball']).path 'tarball'