diff --git a/xbstrap/base.py b/xbstrap/base.py index e71c38e..00f4b3b 100644 --- a/xbstrap/base.py +++ b/xbstrap/base.py @@ -2552,6 +2552,7 @@ def patch_src(cfg, src): "git", "am", "-3", + "--keep-cr" if source.get("patch_keep_crlf", False) else "--no-keep-cr", "--no-gpg-sign", "--committer-date-is-author-date", os.path.join(src.patch_dir, patch), diff --git a/xbstrap/schema.yml b/xbstrap/schema.yml index 598afca..93f5161 100644 --- a/xbstrap/schema.yml +++ b/xbstrap/schema.yml @@ -106,6 +106,8 @@ definitions: type: boolean 'submodules': type: boolean + 'patch_keep_crlf': + type: boolean 'regenerate': { $ref: '#/definitions/build_steps' } 'sources_required': { $ref: '#/definitions/source_deps' } 'tools_required': { $ref: '#/definitions/tool_deps' }