diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-29 15:21:43 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2013-04-29 15:21:43 -0300 |
commit | ba6821ea996d862f66757cb988b4941fb7cc4810 (patch) | |
tree | 027f9a4ef7083835b69ed3e2b4ee6ddee1b7eb74 | |
parent | 72c0c2803a7c72fd7f685df3791f0b835431c807 (diff) | |
download | luarocks-ba6821ea996d862f66757cb988b4941fb7cc4810.tar.gz luarocks-ba6821ea996d862f66757cb988b4941fb7cc4810.tar.bz2 luarocks-ba6821ea996d862f66757cb988b4941fb7cc4810.zip |
Improve patch compatibility, as suggested by Philipp Janda
-rw-r--r-- | src/luarocks/tools/patch.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/tools/patch.lua b/src/luarocks/tools/patch.lua index db1a9de5..04154219 100644 --- a/src/luarocks/tools/patch.lua +++ b/src/luarocks/tools/patch.lua | |||
@@ -295,7 +295,7 @@ function read_patch(filename, data) | |||
295 | -- Accept a space as a terminator, like GNU patch does. | 295 | -- Accept a space as a terminator, like GNU patch does. |
296 | -- Breaks patches containing filenames with spaces... | 296 | -- Breaks patches containing filenames with spaces... |
297 | -- FIXME Figure out what does GNU patch do in those cases. | 297 | -- FIXME Figure out what does GNU patch do in those cases. |
298 | local match = line:match("^%-%-%- ([^\t ]+)") | 298 | local match = line:match("^%-%-%- ([^ \t\r\n]+)") |
299 | if not match then | 299 | if not match then |
300 | all_ok = false | 300 | all_ok = false |
301 | warning(format("skipping invalid filename at line %d", lineno+1)) | 301 | warning(format("skipping invalid filename at line %d", lineno+1)) |