Module git_buildpackage
[hide private]
[frames] | no frames]

Module git_buildpackage

run commands to build a debian package out of a git repository

Functions [hide private]
 
git_archive_submodules(repo, treeish, output, prefix, comp_type, comp_level, comp_opts)
Create tar.gz of an archive with submodules
 
git_archive_single(treeish, output, prefix, comp_type, comp_level, comp_opts)
Create tar.gz of an archive without submodules
 
git_archive(repo, cp, output_dir, treeish, comp_type, comp_level, with_submodules)
create a compressed orig tarball in output_dir using git_archive
 
dump_tree(repo, export_dir, treeish, with_submodules)
dump a tree to output_dir
 
move_old_export(target)
move a build tree away if it exists
 
prepare_output_dir(dir)
 
pristine_tar_build_orig(repo, cp, output_dir, options)
build orig using pristine-tar
 
git_archive_build_orig(repo, cp, output_dir, options)
build orig using git-archive
 
write_wc(repo)
write out the current working copy as a treeish object
 
drop_index()
drop our custom index
 
extract_orig(orig_tarball, dest_dir)
extract orig tarball to export dir before exporting from git
 
guess_comp_type(repo, comp_type, cp, tarball_dir)
Guess compression type
 
setup_pbuilder(options)
setup everything to use git-pbuilder
 
parse_args(argv, prefix)
 
main(argv)
Variables [hide private]
  index_name = 'INDEX'
  wc_name = 'WC'
  wc_index = '.git/gbp_index'
  __package__ = None
hash(x)
Function Details [hide private]

git_archive_submodules(repo, treeish, output, prefix, comp_type, comp_level, comp_opts)

 

Create tar.gz of an archive with submodules

since git-archive always writes an end of tarfile trailer we concatenate the generated archives using tar and compress the result.

Exception handling is left to the caller.

git_archive_single(treeish, output, prefix, comp_type, comp_level, comp_opts)

 

Create tar.gz of an archive without submodules

Exception handling is left to the caller.

pristine_tar_build_orig(repo, cp, output_dir, options)

 

build orig using pristine-tar

Returns:
True: orig.tar.gz build, False: noop