diff --git a/meta/lib/oe/patch.py b/meta/lib/oe/patch.py index 9034fcae03489e805895c29b8b29a8567bd8c537..1116ec91fd10df2276e2bb7c4da7945ea5d20401 100644 --- a/meta/lib/oe/patch.py +++ b/meta/lib/oe/patch.py @@ -238,7 +238,11 @@ class PatchTree(PatchSet): shellcmd.append('--dry-run') try: - output = runcmd(["sh", "-c", " ".join(shellcmd)], self.dir) + if not force: + # behavior of 'with --dry-run' diff from without it, as a workaround, drop runing --dry-run first. + output = runcmd(["echo", "oee drop: ", " ".join(shellcmd)], self.dir) + else: + output = runcmd(["sh", "-c", " ".join(shellcmd)], self.dir) if force: return