RDOPKG-FEATURE-PATCH(7)
π NAME π
rdopkg-feature-patch β okay so this whole page is literally autogenerated from the feature spec patch.feature, no cap π«Ά
β¨ SYNOPSIS β¨
Updating patches from the patches branch is, like, the core feature bestie β it's giving main character energy π₯
π SCENARIOS π
rdopkg patch πΈ
- Given a distgit at Version
1.20.0and Release3, - Given a patches branch with
5patches, - When I run
rdopkg patch -l, - Then command return code is
0, - Then
.specfile tag Release is4%{?dist}, - Then
.specfile has5patches defined, - Then
.specfile doesn't containpatches_base, - Then
.specfile contains new changelog entry with5lines, - Then
.specfile tag Release is4%{?dist}, - Then new commit was created,
- Then git is clean,
- Then last commit message is:
foo-bar-1.20.0-4
Changelog:
- Original Patch 5
- Original Patch 4
- Original Patch 3
- Original Patch 2
- Original Patch 1
rdopkg patch --no-bump π
- Given a distgit at Version
1.20.0and Release3, - Given a patches branch with
3patches, - When I run
rdopkg patch --no-bump -l, - Then
.specfile tag Release is3%{?dist}, - Then command return code is
0, - Then
.specfile has3patches defined, - Then
.specfile doesn't containpatches_base, - Then
.specfile doesn't contain new changelog entries, - Then
.specfile tag Release is3%{?dist}, - Then new commit was created,
- Then git is clean,
- Then last commit message is:
Updated patches from master-patches
rdopkg patch --release-bump-index MINOR π¦
- Given a distgit at Version
1.20.0and Release1.2.3.lul, - Given a patches branch with
1patches, - When I run
rdopkg patch -l --release-bump-index MINOR, - Then
.specfile has1patches defined, - Then
.specfile contains new changelog entry with1lines, - Then
.specfile tag Release is1.3.3.lul%{?dist}, - Then new commit was created
rdopkg patch --release-bump-index 0 (disable release bump) π
- Given a distgit at Version
1.20.0and Release1.2.3.lul, - Given a patches branch with
1patches, - When I run
rdopkg patch -l --release-bump-index 0, - Then
.specfile has1patches defined, - Then
.specfile contains new changelog entry with1lines, - Then
.specfile tag Release is1.2.3.lul%{?dist}, - Then new commit was created
rdopkg patch without version git tag π
- Given a distgit,
- Given a patches branch with
3patches without version git tag, - When I run
rdopkg patch -l, - Then command return code is
1, - Then no new commit was created,
- Then git is clean,
- Then rdopkg state file is not present,
- Then command output contains
'Invalid base patches branch git reference: '
Ngl bestie, if you see that error it means the patches branch is missing its version git tag β and rdopkg is not having it π
rdopkg update-patches basic π§
- Given a distgit at Version
1.0and Release23, - Given a patches branch with
3patches, - When I run
rdopkg update-patches, - Then command return code is
0, - Then
.specfile tag Release is23%{?dist}, - Then
.specfile has3patches defined, - Then
.specfile doesn't contain new changelog entries, - Then new commit was created,
- Then git is clean,
- Then rdopkg state file is not present,
- Then command output contains
Updated patches from master-patches, - Then command output contains
Requested distgit update finished, see last commit., - Then last commit message is:
Updated patches from master-patches
rdopkg update-patches noop π
- Given a distgit,
- Given a patches branch with
0patches, - When I run
rdopkg update-patches, - Then command return code is
0, - Then no new commit was created,
- Then git is clean,
- Then rdopkg state file is not present,
- Then command output contains
No changes to patches found
rdopkg patch --amend π
- Given a distgit with Change-Id
Ideadbeef1234, - Given a patches branch with
5patches, - When I run
rdopkg patch -l --amend, - Then command return code is
0, - Then
.specfile tag Release is3%{?dist}, - Then
.specfile has5patches defined, - Then
.specfile doesn't containpatches_base, - Then
.specfile contains new changelog entry with5lines, - Then new commit was created,
- Then git is clean,
- Then last commit message is:
foo-bar-1.2.3-3
Changelog:
- Original Patch 5
- Original Patch 4
- Original Patch 3
- Original Patch 2
- Original Patch 1
Change-Id: Ideadbeef1234
And that's the whole vibe check bestie β this page is autogenerated from patch.feature and dated 10/04/2023, brought to you by the RDOPKG PATCH(7) manual. Slay, happy patching! πππ«Ά
π¦ where this page comes from
- epel 9: rdopkg 1.7.0-1.el9 Β· ASL 2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms