All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3] patch.bbclass: check if patchdir exist
@ 2021-08-19  8:29 Jose Quaresma
  2021-08-19  9:53 ` [OE-core] " Quentin Schulz
  0 siblings, 1 reply; 3+ messages in thread
From: Jose Quaresma @ 2021-08-19  8:29 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

if the user specifies 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 <quaresma.jose@gmail.com>
---
 meta/classes/patch.bbclass | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 559c6f45bd..1e9a024bf9 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -131,6 +131,8 @@ python patch_do_patch() {
             patchdir = parm["patchdir"]
             if not os.path.isabs(patchdir):
                 patchdir = os.path.join(s, patchdir)
+            if not os.path.isdir(patchdir):
+                bb.fatal("Patch source directory don't found '%s'" % patchdir)
         else:
             patchdir = s
 
-- 
2.33.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-08-20  8:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  8:29 [PATCH v3] patch.bbclass: check if patchdir exist Jose Quaresma
2021-08-19  9:53 ` [OE-core] " Quentin Schulz
2021-08-20  8:29   ` Jose Quaresma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.