Package gbp :: Package scripts :: Package common :: Module buildpackage
[hide private]
[frames] | no frames]

Module buildpackage

Common functionality for Debian and RPM buildpackage scripts

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, formt='tar', directory=None)
Create tar.gz of an archive without submodules
    Functions to handle export-dir
 
dump_tree(repo, export_dir, treeish, with_submodules)
dump a tree to output_dir
 
write_wc(repo, force=True, untracked=True)
write out the current working copy as a treeish object
 
drop_index()
drop our custom index
 
clone_index()
Copy the current index file to our custom index file
Variables [hide private]
  index_name = 'INDEX'
  wc_names = {'WC': {'force': True, 'untracked': True}, 'WC.IGNO...
  wc_index = '.git/gbp_index'
  __package__ = 'gbp.scripts.common'
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, formt='tar', directory=None)

 

Create tar.gz of an archive without submodules

Exception handling is left to the caller.


Variables Details [hide private]

wc_names

Value:
{'WC': {'force': True, 'untracked': True},
 'WC.IGNORED': {'force': True, 'untracked': True},
 'WC.TRACKED': {'force': False, 'untracked': False},
 'WC.UNTRACKED': {'force': False, 'untracked': True}}