patch.bbclass: check if patchdir exist before appling the patch
PATCH v2 1/1 patch.bbclass: check if patchdir exist before appling the patch
if the user specifies a relative path on 'patchdir' that don't exist, the patch will fail and there are no message that indicates the real cause.
Signed-off-by Jose Quaresma <[email protected]>
--- meta/classes/patch.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/patch.bbclass +3 -0
@@ -134,6 +134,9 @@ python patch_do_patch() { else: patchdir = s + if not os.path.isdir(patchdir): + bb.fatal("Patch source directory don't found '%s'" % patchdir) + if not patchdir in classes: patchset = cls(patchdir, d) resolver = rcls(patchset, oe_terminal)
Signature · 1 line
2.33.0