Manage RPM patches in a patch queue
Function | is_ancestor | Check if commit is ancestor of another |
Function | generate_patches | Generate patch files from git |
Function | rm_patch_files | Delete the patch files listed in the spec file. Doesn't delete patches marked as not maintained by gbp. |
Function | update_patch_series | Export patches to packaging directory and update spec file accordingly. |
Function | parse_spec | Find and parse spec file. |
Function | find_upstream_commit | Find commit corresponding upstream version |
Function | export_patches | Export patches from the pq branch into a packaging branch |
Function | safe_patches | Safe the current patches in a temporary directory |
Function | get_packager | Get packager information from spec |
Function | import_spec_patches | apply a series of patches in a spec/packaging dir to branch the patch-queue branch for 'branch' |
Function | rebase_pq | Rebase pq branch on the correct upstream version (from spec file). |
Function | switch_pq | Switch to patch-queue branch if on base branch and vice versa |
Function | usage_msg | Undocumented |
Function | build_parser | Construct command line parser |
Function | parse_args | Parse command line arguments |
Function | main | Main function for the gbp pq-rpm command |
Delete the patch files listed in the spec file. Doesn't delete patches marked as not maintained by gbp.
Export patches to packaging directory and update spec file accordingly.
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.
Safe the current patches in a temporary directory
Parameters | queue | an existing patch queue |
Returns | safed queue (with patches in tmpdir) (type: tuple) |