gitapply.sh: Add license, check for dependencies before proceeding, several smaller improvements.

This commit is contained in:
Sebastian Lackner
2014-07-25 19:49:56 +02:00
parent 1f95d8181d
commit e99ff32949
2 changed files with 54 additions and 20 deletions

View File

@@ -182,7 +182,7 @@ def read_patch(filename):
# Decide between binary and textual patch
if line is None or line.startswith("diff --git ") or line.startswith("--- "):
if oldname != newname:
raise PatchParserError("Stripped old- and new name doesn't match for binary patch.")
raise PatchParserError("Stripped old- and new name doesn't match.")
elif line.startswith("@@ -"):
while True: