diff options
author | Dominic Sacré <dominic.sacre@gmx.de> | 2017-02-15 11:44:49 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-02-23 12:49:48 -0800 |
commit | 73e811190b6c7fab03ee1cc242036efaca912478 (patch) | |
tree | 0f7458a63d993ac10644f0bfa4da98c81b1c5196 /meta/lib/oe/patch.py | |
parent | 4a87679857c493558adbbb9ce74c2382f401deba (diff) | |
download | poky-73e811190b6c7fab03ee1cc242036efaca912478.tar.gz |
lib/oe/patch: Support xz-compressed patches
Add .xz to the list of extensions recognized by patch_path(), so that
compressed patches ending in .patch.xz or .diff.xz are automatically
applied.
(From OE-Core rev: f1a2c45765d14d3ca09657ad1f6b526554af2bb6)
(From OE-Core rev: f50fd7f247d5bb05bc7d1109c574a682067688da)
Signed-off-by: Dominic Sacré <dominic.sacre@gmx.de>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/patch.py')
-rw-r--r-- | meta/lib/oe/patch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 95674b3706..aaa2d3aabd 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py | |||
@@ -776,7 +776,7 @@ def patch_path(url, fetch, workdir, expand=True): | |||
776 | 776 | ||
777 | local = fetch.localpath(url) | 777 | local = fetch.localpath(url) |
778 | base, ext = os.path.splitext(os.path.basename(local)) | 778 | base, ext = os.path.splitext(os.path.basename(local)) |
779 | if ext in ('.gz', '.bz2', '.Z'): | 779 | if ext in ('.gz', '.bz2', '.xz', '.Z'): |
780 | if expand: | 780 | if expand: |
781 | local = os.path.join(workdir, base) | 781 | local = os.path.join(workdir, base) |
782 | ext = os.path.splitext(base)[1] | 782 | ext = os.path.splitext(base)[1] |