Skip to content

Commit

Permalink
Rename %apply_patch to make it clearer it's an internal thing (#1357)
Browse files Browse the repository at this point in the history
%apply_patch was never intended to be called directly, lets make this
more obvious by adding preceding underscores.
  • Loading branch information
pmatilai authored and ffesti committed Jan 22, 2021
1 parent 2621569 commit b3e30d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros.in
Original file line number Diff line number Diff line change
Expand Up @@ -1251,7 +1251,7 @@ package or when debugging this package.\
%{__bzr} commit %{-q} -m %{-m*}

# Single patch application
%apply_patch(qp:m:)\
%__apply_patch(qp:m:)\
%{lua:\
local file = rpm.expand("%{1}")\
local num = rpm.expand("%{2}")\
Expand All @@ -1277,7 +1277,7 @@ for i, p in ipairs(patches) do\
local inum = patch_nums[i]\
if ((not low_limit or inum>=low_limit) and (not high_limit or inum<=high_limit)) \
then\
print(rpm.expand("%apply_patch -m %{basename:"..p.."} "..options..p.." "..i.."\\n")) \
print(rpm.expand("%__apply_patch -m %{basename:"..p.."} "..options..p.." "..i.."\\n")) \
end\
end}

Expand Down

0 comments on commit b3e30d9

Please sign in to comment.