When the reject file is simple, replace it by rpmdev-bumpspec by encukou · Pull Request #10 · fedora-python/ferrypick · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@ ferrypick

Apply patches from Fedora dist git to different components.

This simple tool does 3 steps:
This simple tool does these steps:

1. download patch file from src.fedoraproject.org
2. replaces package name with current dist-git work dir package name
3. runs `git am --reject` on the product
4. if the rejected hunks only touch `Release` and add `%changelog` in spec
files, ignore the rejects and run `rpmdev-bumpspec` instead.
(This step is skipped if there's a chance it wouldn't be safe,
such if there are as pre-existing `.rej` files.)

Requires the `rpmdev-bumpspec` tool from [rpmdevtools].

[rpmdevtools]: https://pagure.io/rpmdevtools

Usage:

Expand Down
98 changes: 90 additions & 8 deletions ferrypick.py
Loading