Common functionality for Debian and RPM buildpackage scripts
Variable | index_name | Undocumented |
Variable | wc_names | Undocumented |
Function | sanitize_prefix | Sanitize the prefix used for generating source archives |
Function | compress | Filter data through a compressor cmd. |
Function | git_archive_submodules | Create a source tree archive with submodules. |
Function | git_archive_single | Create an archive without submodules |
Function | untar_data | Extract tar provided as an iterable |
Function | dump_tree | Dump a git tree-ish 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 |
Function | clone_index | Copy the current index file to our custom index file |
Sanitize the prefix used for generating source archives
>>> sanitize_prefix('') '/' >>> sanitize_prefix('foo/') 'foo/' >>> sanitize_prefix('/foo/bar') 'foo/bar/'
Filter data through a compressor cmd.
For better performance input_data should feed data in bigger chunks.
Create a source tree 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.
Create an archive without submodules
Exception handling is left to the caller.
Dump a git tree-ish to output_dir