patch.bbclass: check if patchdir exist before appling the patch
A message that is not in the archive (sent off-list or not yet received): [email protected]
It only makes sense to check if the patchdir exists when it is defined, fixed in V3
Jose Quaresma via lists.openembedded.org <[email protected]> escreveu no dia quinta, 19/08/2021 à(s) 08:53:
Quoted 29 lines
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
-1@@ -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) --2.33.0
Signature · 3 lines
Best regards, José Quaresma