mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 12:12:47 +00:00
Fix UpstreamBuilder deprecation warning (#461)
RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N)
This commit is contained in:
parent
deb8dd130a
commit
39449a8cc2
2 changed files with 2 additions and 2 deletions
|
@ -938,7 +938,7 @@ class UpstreamBuilder(NoTgzBuilder):
|
|||
lines.insert(patch_insert_index, "Patch%s: %s\n" % (patch_number,
|
||||
patch_filename))
|
||||
if patch_apply_index > 0:
|
||||
lines.insert(patch_apply_index, "%%patch%s -p1\n" % (patch_number))
|
||||
lines.insert(patch_apply_index, "%%patch %s -p1\n" % (patch_number))
|
||||
self._write_spec(lines)
|
||||
|
||||
def _write_spec(self, lines):
|
||||
|
|
|
@ -44,7 +44,7 @@ class DistributionBuilder(UpstreamBuilder):
|
|||
|
||||
for patch in self.patch_files:
|
||||
lines.insert(patch_insert_index, "Patch%s: %s\n" % (patch_number, patch))
|
||||
lines.insert(patch_apply_index, "%%patch%s -p1\n" % (patch_number))
|
||||
lines.insert(patch_apply_index, "%%patch %s -p1\n" % (patch_number))
|
||||
patch_number += 1
|
||||
patch_insert_index += 1
|
||||
patch_apply_index += 2
|
||||
|
|
Loading…
Add table
Reference in a new issue