-
Notifications
You must be signed in to change notification settings - Fork 22
Open
Labels
Description
In Ceph we often have to rewrite our -patches branch to address build failures, etc.
If I rewrite the final patch in my -patches
branch and run rdopkg patch
again, rdopkg will bump the Release and insert a generic changelog entry like this:
%changelog
+* Mon Jul 16 2018 Ken Dreyer <kdreyer@redhat.com> 2:12.2.4-34
+- Update patches
+
Currently I have to rewrite that %changelog by hand in this case.
It would be great to figure out which patches changed and print their commit message titles here, along with the rhbz numbers.
I do this with an Ubuntu-equivalent tool at https://github.com/red-hat-storage/rhcephpkg/blob/master/rhcephpkg/patch.py . It generates a package changelog like this:
* Modified debian/patches/0150-radosgw-admin-sync-error-trim-loops-
until-complete.patch (rhbz#1600702)
It works by reading the output of git status -s debian/patches/
, and parsing that into "Deleted", "Added", "Modified" actions.