Commit Graph

37 Commits

Author SHA1 Message Date
James Larrowe
eb09d462e2 Use /usr/bin/env python2 instead of /usr/bin/python2
Signed-off-by: James Larrowe <larrowe.semaj11@gmail.com>
2019-01-16 19:20:30 -05:00
Zebediah Figura
1ee9d7c6e8 Rebase against 64d9f309b7f74d4154e685c5d1d78c1b8335c0bc. 2018-09-14 21:10:12 -05:00
Zebediah Figura
28e66e552f patchutils: Be less silent about patches that don't apply. 2018-09-10 19:32:35 -05:00
Zebediah Figura
06c1bde586 patchutils.py: fix crash when a patch deletes a file 2018-08-16 22:05:28 -05:00
Sebastian Lackner
3ad216bb25 patchutils.py: Fix Python 3 compatibility. 2017-01-20 05:00:18 +01:00
Sebastian Lackner
efca1a6845 patchutils.py: Generate more compact autogenerated patches. 2017-01-20 02:00:52 +01:00
Sebastian Lackner
76a233502e patchupdate.py: Use printf instead of echo to workaround bash/dash incompatibilities. 2017-01-19 09:15:23 +01:00
Sebastian Lackner
49ba202882 Added patch to fix return type of shlwapi.SHAddDataBlock.
Also fixes parsing of multiline From: headers in staging/patchutils.py.
2017-01-19 07:17:02 +01:00
Sebastian Lackner
4d1dd4c62a patchutils.py: Create smaller #ifdef ranges. 2016-07-22 18:49:06 +02:00
Sebastian Lackner
2b1f2e8578 patchutils.py: Fix a bug when parsing certain hunk headers. 2016-07-22 18:44:44 +02:00
Sebastian Lackner
4b1b7f77bc patchutils.py: Invert logic for applying #ifdef patches. 2016-07-22 17:33:27 +02:00
Sebastian Lackner
004c3abe40 patchutils.py: Generate diff in git format. 2016-07-01 01:28:38 +02:00
Sebastian Lackner
6914bab984 patchutils.py: Use a common helper function for parsing patch hunks. 2016-04-04 04:43:05 +02:00
Sebastian Lackner
3ad772bb1f patchutils.py: Add tests for multiple patches in a single file. 2016-04-04 00:58:34 +02:00
Sebastian Lackner
a3bc186a20 patchutils.py: Move external test resources to a separate directory. 2016-04-04 00:56:14 +02:00
Sebastian Lackner
d21860deb6 patchutils.py: Get rid of 'expected' array in tests. 2016-04-04 00:24:26 +02:00
Sebastian Lackner
9e9b2716c4 patchutils.py: Avoid side-effects in asserts. 2016-04-03 23:47:43 +02:00
Sebastian Lackner
c4a321904d patchutils.py: Allow to pass io object to read_patch and _FileReader class. 2016-04-03 23:44:10 +02:00
Sebastian Lackner
f21f134546 patchutils.py: Remove is_binary() function. 2016-04-02 23:13:01 +02:00
Sebastian Lackner
bc7dbd89e0 patchutils.py: Remaining improvements for Python 3 compatibility. 2016-04-02 22:21:04 +02:00
Sebastian Lackner
74d16be256 patchutils.py: Explicitly open temporary files in non-binary mode for Python 3 compatibility. 2016-04-02 22:19:49 +02:00
Sebastian Lackner
8571c8b533 patchutils.py: Fix compatibility of StringIO with Python 3. 2016-04-02 22:16:59 +02:00
Sebastian Lackner
d3a4c072f7 patchutils.py: Add tests for read_patch function. 2016-04-02 21:22:01 +02:00
Sebastian Lackner
8bed2e61a6 patchutils.py: Avoid runtime error when parsing patch without author information. 2016-04-02 21:02:23 +02:00
Sebastian Lackner
6eb36a3a28 patchutils.py: Add tests for apply_patch function. 2016-04-02 20:25:37 +02:00
Sebastian Lackner
86f1e40597 patchutils.py: Add tests for generate_ifdef_patch function. 2016-03-26 03:13:06 +01:00
Sebastian Lackner
5e5229ecce patchutils.py: Improve handling of patches without linebreak at end of file in generate_ifdef_patch. 2016-03-26 02:54:21 +01:00
Sebastian Lackner
4b1c2ec4d6 patchutils.py: Add tests for _parse_author and _parse_subject function. 2016-03-26 02:16:39 +01:00
Sebastian Lackner
19d04e3ea1 patchutils.py: Add tests for _preprocess_source function. 2016-03-26 01:10:48 +01:00
Sebastian Lackner
f21c3bc221 patchutils.py: Simplify access of optional dict values. 2016-03-22 08:22:19 +01:00
Sebastian Lackner
b0cbb8bda2 patchutils.py: Reset the Signed-off-by header after parsing each patch. 2016-03-22 08:17:01 +01:00
Sebastian Lackner
d6f0fd33c7 patchutils.py: Avoid nested function definitions. 2016-03-22 08:00:18 +01:00
Sebastian Lackner
1e5b8f9940 Added patch to implement support for AVIFile interface proxies. 2016-02-07 07:01:34 +01:00
Sebastian Lackner
ff0e7cc638 patchutils.py: Fix a bug in preprocessor when parsing specific strings. 2016-01-06 22:17:06 +01:00
Sebastian Lackner
3f57e8259b patchutils.py: Implement function to read patch from string buffer. 2016-01-06 14:31:44 +01:00
Sebastian Lackner
f2fccc7342 patchutils.py: Fix a bug related to #ifdef patch generator. 2016-01-05 23:30:20 +01:00
Sebastian Lackner
87b990dc41 Rename patch-tools/ to staging/. 2015-11-23 02:43:28 +01:00