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
 
is_ancestor(repo, parent, child)
Check if commit is ancestor of another
 
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.
 
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, tmpdir_base)
Safe the current patches in a temporary directory below 'tmpdir_base'.
 
get_packager(spec)
Get packager information from spec
 
import_extra_files(repo, commitish, files, patch_ignore=True)
Import branch-specific gbp.conf files to current branch
 
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).
 
switch_pq(repo, options)
Switch to patch-queue branch if on base branch and vice versa
 
drop_pq_rpm(repo, options)
Remove pq branch
 
switch_to_pq_branch(repo, branch, options)
Switch to patch-queue branch if not already there, create it if it doesn't exist yet
 
apply_single_patch(repo, patchfile, options)
Apply a single patch onto the pq branch
 
convert_package(repo, options)
Convert package to orphan-packaging model
 
convert_with_history(repo, upstream, commits, new_branch, spec_fn, options)
Auto-import packaging files and (auto-generated) patches
 
opt_split_cb(option, opt_str, value, parser)
Split option string into a list
 
main(argv)
Main function for the gbp pq-rpm command
Variables [hide private]
  USAGE_STRING = '%prog [options] action - maintain patches on a...
  __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.

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

Variables Details [hide private]

USAGE_STRING

Value:
'''%prog [options] action - maintain patches on a patch queue branch
tions:
export         Export the patch queue / devel branch associated to the
               current branch into a patch series in and update the sp\
ec file
import         Create a patch queue / devel branch from spec file
               and patches in current dir.
rebase         Switch to patch queue / devel branch associated to the \
...