[OE-core] [PATCH] lib/oe/patch: Support xz-compressed patches
Dominic Sacré
dominic.sacre at gmx.de
Wed Feb 15 10:44:49 UTC 2017
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.
Signed-off-by: Dominic Sacré <dominic.sacre at gmx.de>
---
meta/lib/oe/patch.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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]
--
2.11.0
More information about the Openembedded-core
mailing list