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:29:10 -0800 |
commit | f50fd7f247d5bb05bc7d1109c574a682067688da (patch) | |
tree | 76ec44275b7123c34f72da22b1d1ff5a6db01e77 | |
parent | 4f09ec0e7b51cc599d6a46d41f77d6fb07a6d445 (diff) | |
download | openembedded-core-f50fd7f247d5bb05bc7d1109c574a682067688da.tar.gz openembedded-core-f50fd7f247d5bb05bc7d1109c574a682067688da.tar.bz2 openembedded-core-f50fd7f247d5bb05bc7d1109c574a682067688da.zip |
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)
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>
-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): local = fetch.localpath(url) base, ext = os.path.splitext(os.path.basename(local)) - if ext in ('.gz', '.bz2', '.Z'): + if ext in ('.gz', '.bz2', '.xz', '.Z'): if expand: local = os.path.join(workdir, base) ext = os.path.splitext(base)[1] |