Build a Debian package out of a Git repository
Function | build |
Undocumented |
Function | changes |
Undocumented |
Function | changes |
No summary |
Function | check |
Check if we're on the right branch and bail out otherwise |
Function | check |
Perform specified consistency checks on git history |
Function | clean |
Clean the working tree. |
Function | disable |
Disable all hooks (except for builder) |
Function | export |
Export a version of the source tree when building in a separate directory |
Function | get |
Determin the dist to build for with pbuilder/cowbuilder |
Function | main |
Undocumented |
Function | mangle |
Make building with --export=WC simpler |
Function | maybe |
Write a tree of the index or working copy if necessary |
Function | move |
move a build tree away if it exists |
Function | overlay |
Overlay extract orig tarballs to export dir before exporting debian dir from git |
Function | parse |
Undocumented |
Function | prepare |
Prepare the directory where the build result will be put |
Function | setup |
Setup environment variables for git-pbuilder |
Function | source |
Init source package info either from git or from working copy |
>>> changes_file_suffix('debuild', ['-A'], '') 'all' >>> changes_file_suffix('debuild', ['-S'], '') 'source' >>> changes_file_suffix('debuild -A', ['-uc', '-us'], '') 'all' >>> changes_file_suffix('debuild -S', ['-uc', '-us'], '') 'source' >>> changes_file_suffix('debuild', [], '') == du.get_arch() True >>> changes_file_suffix('debuild', [], 'arm64') 'arm64'
Check if we're on the right branch and bail out otherwise
returns: the current branch or None if in detached head mode
Clean the working tree.
:param options: Program run-time options, as an `optparse.OptionContainer`. :param repo: The Git repository, as a `DebianGitRepository`. :raise GbpError: When the working tree has uncommitted changes. :return: None.
Export a version of the source tree when building in a separate directory
Parameters | |
repo:gbp.git.GitRepository | the git repository to export from |
tree | Undocumented |
source | the source package |
options | options to apply |
dest | where to export the source to |
tarball | where to fetch the tarball from in overlay mode |
Returns | |
the temporary directory |
Write a tree of the index or working copy if necessary
Parameters | |
repo:GitRepository | the git repository we're acting on |
options | Undocumented |
Returns | |
str | the sha1 of the tree |
Setup environment variables for git-pbuilder
We return two dictionaries (pbd_env, hook_env) that can be passed as environment when running commands
*pbd_env* is used for the actual build command while *hook_env* is passed to all hooks. They both contain the same information but *pbd_env* contains the depreated variable names not starting with *GBP_*.