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

Module pq_rpm

manage patches in a patch queue

Functions [hide private]
 
export_patches(repo, branch, options)
Export patches from the pq branch into a packaging branch
tuple
safe_patches(queue)
Safe the current patches in a temporary directory below .git/
 
import_spec_patches(repo, branch, tries, 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)
Switch to patch-queue branch if on base branch and vice versa
 
main(argv)
Variables [hide private]
  __package__ = 'gbp.scripts'
Function Details [hide private]

safe_patches(queue)

 

Safe the current patches in a temporary directory below .git/

Parameters:
  • queue - an existing patch queue
Returns: tuple
tmpdir and a safed queue (with patches in tmpdir)

import_spec_patches(repo, branch, tries, 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
  • tries - try that many times to apply the patches going back one commit in the branches history after each failure.
  • options - command options