Package gbp :: Package scripts :: Module pq_rpm

[hide private]
[frames] | no frames]

# Module pq_rpm

manage patches in a patch queue

Functions | [hide private]

is_ancestor(repo, parent, child) Check if commit is ancestor of another |

generate_patches(repo, start, end, outdir, options) Generate patch files from git |

rm_patch_files(spec) Delete the patch files listed in the spec file. |

update_patch_series(repo, spec, start, end, options) Export patches to packaging directory and update spec file accordingly. |

parse_spec(options, repo, treeish=None) Find and parse spec file. |

find_upstream_commit(repo, spec, upstream_tag) Find commit corresponding upstream version |

export_patches(repo, options) Export patches from the pq branch into a packaging branch |

tuple

safe_patches(queue) Safe the current patches in a temporary directory |

get_packager(spec) Get packager information from spec |

import_spec_patches(repo, options) apply a series of patches in a spec/packaging dir to branch the patch-queue branch for 'branch' |

rebase_pq(repo, options) Rebase pq branch on the correct upstream version (from spec file). |

build_parser(name) Construct command line parser |

parse_args(argv) Parse command line arguments |

main(argv) Main function for the gbp pq-rpm command |

Variables | [hide private]

| __package__ = ``'``gbp.scripts``'``

Function Details | [hide private]

### rm_patch_files(spec)

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

### 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.

### 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)

### 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