# `gbp.scripts.common.buildpackage` module documentation

Part of `gbp.scripts.common`

Common functionality for Debian and RPM buildpackage scripts

Variable | index_name | Undocumented
Variable | wc_name | Undocumented
Function | dump_tree | dump a tree to output_dir
Function | wc_index | Get path of the temporary index file used for exporting working copy
Function | write_wc | write out the current working copy as a treeish object
Function | drop_index | drop our custom index

index_name =
Undocumented
(type: `str`)
wc_name =
Undocumented
(type: `str`)
def dump_tree(repo, export_dir, treeish, with_submodules, recursive=(True)):

dump a tree to output_dir

def wc_index(repo):

Get path of the temporary index file used for exporting working copy

def write_wc(repo, force=(True)):

write out the current working copy as a treeish object

def drop_index(repo):

drop our custom index