All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] patch.bbclass: check if patchdir exist before appling the patch
@ 2021-08-19  7:53 Jose Quaresma
  0 siblings, 0 replies; only message in thread
From: Jose Quaresma @ 2021-08-19  7:53 UTC (permalink / raw)
  To: openembedded-core; +Cc: Jose Quaresma

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

diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass
index 559c6f45bd..4b38be7e3f 100644
--- a/meta/classes/patch.bbclass
+++ b/meta/classes/patch.bbclass
@@ -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


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-19  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  7:53 [PATCH v2] patch.bbclass: check if patchdir exist before appling the patch 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.