aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV1K1NGbg <victor@ilchev.com>2024-08-03 15:52:35 +0300
committerV1K1NGbg <victor@ilchev.com>2024-08-05 20:51:31 +0300
commit88e4b6bea9b4dd1d1b5bcf6f02476098985c34db (patch)
tree42fe8c7be9d68428ad671d1c798c1ce24a133d07
parent417107d9d9661d4ab0ba6a63239374b200814fce (diff)
downloadluarocks-88e4b6bea9b4dd1d1b5bcf6f02476098985c34db.tar.gz
luarocks-88e4b6bea9b4dd1d1b5bcf6f02476098985c34db.tar.bz2
luarocks-88e4b6bea9b4dd1d1b5bcf6f02476098985c34db.zip
patch looking for error
-rw-r--r--src/luarocks/tools/patch.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua
index 0b109313..b3d116f2 100644
--- a/src/luarocks/tools/patch.lua
+++ b/src/luarocks/tools/patch.lua
@@ -733,15 +733,15 @@ function patch.apply_patch(the_patch, strip, create_delete)
733 local all_ok = true 733 local all_ok = true
734 local total = #the_patch.source 734 local total = #the_patch.source
735 for fileno, source in ipairs(the_patch.source) do 735 for fileno, source in ipairs(the_patch.source) do
736 local target = the_patch.target[fileno] 736 local target = the_patch.target[fileno]
737 local hunks = the_patch.hunks[fileno] 737 local hunks = the_patch.hunks[fileno]
738 local epoch = the_patch.epoch[fileno] 738 local epoch = the_patch.epoch[fileno]
739 info(string.format("processing %d/%d:\t %s", fileno, total, source)) 739 info(format("processing %d/%d:\t %s", fileno, total, source))
740 local ok = patch_file(tostring(source), tostring(target), epoch, hunks, strip, create_delete) 740 local ok = patch_file(source, target, epoch, hunks, strip, create_delete)
741 all_ok = all_ok and ok 741 all_ok = all_ok and ok
742 end 742 end
743 743 -- todo: check for premature eof
744 return all_ok 744 return all_ok
745end 745 end
746 746
747return patch 747return patch