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

Module pq_rpm

manage patches in a patch queue

Functions [hide private]
 
compress_patches(patches, compress_size=0)
Rename and/or compress patches
 
generate_patches(repo, start, squash, end, outdir, options)
Generate patch files from git
 
rm_patch_files(spec)
Delete the patch files listed in the spec files.
 
update_patch_series(repo, spec, start, end, options)
Export patches to packaging directory and update spec file accordingly.
 
export_patches(repo, branch, options)
Export patches from the pq branch into a packaging branch
tuple
safe_patches(queue, tmpdir_base)
Safe the current patches in a temporary directory below 'tmpdir_base'.
 
get_packager(spec)
Get packager information from spec
 
import_spec_patches(repo, branch, options)
apply a series of patches in a spec/packaging dir to branch the patch-queue branch for 'branch'
 
rebase_pq(repo, branch, options)
 
switch_pq(repo, current, options)
Switch to patch-queue branch if on base branch and vice versa
 
main(argv)
Variables [hide private]
  __package__ = 'gbp.scripts'
Function Details [hide private]

rm_patch_files(spec)

 

Delete the patch files listed in the spec files. Doesn't delete patches marked as not maintained by gbp.

safe_patches(queue, tmpdir_base)

 

Safe the current patches in a temporary directory below 'tmpdir_base'. Also, uncompress compressed patches here.

Parameters:
  • queue - an existing patch queue
  • tmpdir_base - base under which to create tmpdir
Returns: tuple
tmpdir and a safed queue (with patches in tmpdir)

import_spec_patches(repo, branch, options)

 

apply a series of patches in a spec/packaging dir to branch the patch-queue branch for 'branch'

Parameters:
  • repo - git repository to work on
  • branch - branch to base pqtch queue on
  • options - command options