module documentation
Manage RPM patches in a patch queue
| Function | build |
Construct command line parser |
| Function | export |
Export patches from the pq branch into a packaging branch |
| Function | find |
Find commit corresponding upstream version |
| Function | generate |
Generate patch files from git |
| Function | get |
Get packager information from spec |
| Function | import |
apply a series of patches in a spec/packaging dir to branch the patch-queue branch for 'branch' |
| Function | is |
Check if commit is ancestor of another |
| Function | main |
Main function for the gbp pq-rpm command |
| Function | parse |
Parse command line arguments |
| Function | parse |
Find and parse spec file. |
| Function | rebase |
Rebase pq branch on the correct upstream version (from spec file). |
| Function | rm |
Delete the patch files listed in the spec file. Doesn't delete patches marked as not maintained by gbp. |
| Function | safe |
Safe the current patches in a temporary directory |
| Function | switch |
Switch to patch-queue branch if on base branch and vice versa |
| Function | update |
Export patches to packaging directory and update spec file accordingly. |
| Function | usage |
Undocumented |
def import_spec_patches(repo, 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 |
| options | command options |
def parse_spec(options, repo, treeish=None):
Find and parse spec file.
If treeish is given, try to find the spec file from that. Otherwise, search for the spec file in the working copy.
def rm_patch_files(spec):
Delete the patch files listed in the spec file. Doesn't delete patches marked as not maintained by gbp.
def safe_patches(queue):
Safe the current patches in a temporary directory
| Parameters | |
| queue | an existing patch queue |
| Returns | |
| tuple | safed queue (with patches in tmpdir) |