Skip to content

Commit

Permalink
fix: default patch level is 0
Browse files Browse the repository at this point in the history
  • Loading branch information
examachine committed Feb 26, 2017
1 parent 32ca7a8 commit 849b92b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pisi/op/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,10 @@ def apply_patches(self):
targetDir=ctx.config.tmp_dir())

ctx.ui.action(_("* Applying patch: %s") % patch.filename)
util.do_patch(self.srcDir, patchFile, level=patch.level, target=patch.target)
level = patch.level
if not level:
level = 0 # default patch level
util.do_patch(self.srcDir, patchFile, level=level, target=patch.target)

def generate_static_package_object(self):
ar_files = []
Expand Down

0 comments on commit 849b92b

Please sign in to comment.