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]

(From OE-Core rev: 9e0a21dda24f285a1c4878488e887485a749f3f2)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-11-03 22:00:55 +00:00
parent 3b856e1cdf
commit 9d1f10ed01
2 changed files with 9 additions and 12 deletions

View File

@@ -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: