Skip to content

Commit

Permalink
Merge pull request #1130 from rpm-software-management/patch-not-applied
Browse files Browse the repository at this point in the history
SpecCheck: Support "%patch n" to detect applied patches
  • Loading branch information
danigm authored Oct 19, 2023
2 parents 63c980a + 094df2e commit 3691f93
Show file tree
Hide file tree
Showing 3 changed files with 444 additions and 1 deletion.
2 changes: 1 addition & 1 deletion rpmlint/checks/SpecCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def re_tag_compile(tag):


patch_regex = re_tag_compile(r'Patch(\d*)')
applied_patch_regex = re.compile(r'^%patch(\d*)')
applied_patch_regex = re.compile(r'^%patch\s*(\d*)')
applied_patch_p_regex = re.compile(r'\s-P\s*(\d+)\b')
applied_patch_pipe_regex = re.compile(r'\s%\{PATCH(\d+)\}\s*\|\s*(%\{?__)?patch\b')
applied_patch_i_regex = re.compile(r'(?:%\{?__)?patch\}?.*?\s+(?:<|-i)\s+%\{PATCH(\d+)\}')
Expand Down
Loading

0 comments on commit 3691f93

Please sign in to comment.