Build a debian package out of a GIT repository
| Function | git_archive | create a compressed orig tarball in output_dir using git_archive |
| Function | prepare_upstream_tarball | Make sure we have an upstream tarball. This involves loooking in tarball_dir, symlinking or building it. |
| Function | write_tree | Write a tree of the index or working copy if necessary |
| Function | export_source | Export a version of the source tree when building in a separate directory |
| Function | move_old_export | move a build tree away if it exists |
| Function | extract_orig | extract orig tarball to export dir before exporting from git |
| Function | source_vfs | Init source package info either from git or from working copy |
| Function | prepare_output_dir | Prepare the directory where the build result will be put |
| Function | pristine_tar_build_orig | build orig using pristine-tar @return: True: orig tarball build, False: noop |
| Function | get_upstream_tree | Determine the upstream tree from the given options |
| Function | git_archive_build_orig | Build orig tarball using git-archive |
| Function | guess_comp_type | Guess compression type |
| Function | setup_pbuilder | setup everything to use git-pbuilder |
| Function | disable_builder | Disable builder (and postbuild hook) |
| Function | disable_hooks | Disable all hooks (except for builder) |
| Function | changes_file_suffix | No summary |
| Function | build_parser | Undocumented |
| Function | parse_args | Undocumented |
| Class | Hook | A hook run during the build |
| Function | main | Undocumented |
create a compressed orig tarball in output_dir using git_archive
Make sure we have an upstream tarball. This involves loooking in tarball_dir, symlinking or building it.
Write a tree of the index or working copy if necessary
| Parameters | repo | the git repository we're acting on (type: GitRepository) |
| Returns | the sha1 of the tree (type: str) | |
Export a version of the source tree when building in a separate directory
| Parameters | repo | the git repository to export from (type: gbp.git.GitRepository) |
| source | the source package | |
| options | options to apply | |
| dest_dir | where to export the source to | |
| tarball_dir | where to fetch the tarball from in overlay mode | |
| Returns | the temporary directory | |
extract orig tarball to export dir before exporting from git
build orig using pristine-tar
| Returns | True: orig tarball build, False: noop | |
Build orig tarball using git-archive
| Parameters | cp | the changelog of the package we're acting on (type: ChangeLog) |
| output_dir | where to put the tarball (type: Str) | |
| options | the parsed options (type: dict of options) | |
| Returns | the tree we built the tarball from (type: str) | |