summaryrefslogtreecommitdiff
path: root/meta/classes/patch.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-03 22:00:55 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-11-04 17:04:32 +0000
commit9e0a21dda24f285a1c4878488e887485a749f3f2 (patch)
tree198e762d199b9007756f3043a785d4ea1618496b /meta/classes/patch.bbclass
parent08b78066bd5a9ff2819a42eb4263ee0a78cddb97 (diff)
downloadopenembedded-core-9e0a21dda24f285a1c4878488e887485a749f3f2.tar.gz
openembedded-core-9e0a21dda24f285a1c4878488e887485a749f3f2.tar.bz2
openembedded-core-9e0a21dda24f285a1c4878488e887485a749f3f2.zip
patch: Convert to use oe_terminal
Unfortunately we can't access oe_terminal directly from patch.py so we have to pass in the correct terminal function pointer. [YOCTO #1587] Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/patch.bbclass')
-rw-r--r--meta/classes/patch.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 762216345a..86046e1ff8 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -5,6 +5,8 @@ QUILTRCFILE ?= "${STAGING_BINDIR_NATIVE}/quiltrc"
PATCHDEPENDENCY = "${PATCHTOOL}-native:do_populate_sysroot"
+inherit terminal
+
python patch_do_patch() {
import oe.patch
@@ -124,7 +126,7 @@ python patch_do_patch() {
if not patchdir in classes:
patchset = cls(patchdir, d)
- resolver = rcls(patchset)
+ resolver = rcls(patchset, oe_terminal)
classes[patchdir] = (patchset, resolver)
patchset.Clean()
else: