diff options
| -rw-r--r-- | meta/classes/patch.bbclass | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/meta/classes/patch.bbclass b/meta/classes/patch.bbclass index 0989407844..1bd99354b5 100644 --- a/meta/classes/patch.bbclass +++ b/meta/classes/patch.bbclass | |||
| @@ -345,6 +345,7 @@ def patch_init(d): | |||
| 345 | return | 345 | return |
| 346 | print(sys.exc_value) | 346 | print(sys.exc_value) |
| 347 | print('NOTE: dropping user into a shell, so that patch rejects can be fixed manually.') | 347 | print('NOTE: dropping user into a shell, so that patch rejects can be fixed manually.') |
| 348 | print('Press CTRL+D to exit.') | ||
| 348 | 349 | ||
| 349 | os.system('/bin/sh') | 350 | os.system('/bin/sh') |
| 350 | 351 | ||
| @@ -353,6 +354,7 @@ def patch_init(d): | |||
| 353 | # refresh on each. | 354 | # refresh on each. |
| 354 | oldpatchset = self.patchset | 355 | oldpatchset = self.patchset |
| 355 | self.patchset = oldpatchset.__class__(self.patchset.dir, self.patchset.d) | 356 | self.patchset = oldpatchset.__class__(self.patchset.dir, self.patchset.d) |
| 357 | self.patchset.InitFromDir() | ||
| 356 | 358 | ||
| 357 | for patch in self.patchset.patches: | 359 | for patch in self.patchset.patches: |
| 358 | oldpatch = None | 360 | oldpatch = None |
| @@ -384,6 +386,7 @@ def patch_init(d): | |||
| 384 | g["NOOPResolver"] = NOOPResolver | 386 | g["NOOPResolver"] = NOOPResolver |
| 385 | g["NotFoundError"] = NotFoundError | 387 | g["NotFoundError"] = NotFoundError |
| 386 | g["CmdError"] = CmdError | 388 | g["CmdError"] = CmdError |
| 389 | g["PatchError"] = PatchError | ||
| 387 | 390 | ||
| 388 | addtask patch after do_unpack | 391 | addtask patch after do_unpack |
| 389 | do_patch[dirs] = "${WORKDIR}" | 392 | do_patch[dirs] = "${WORKDIR}" |
| @@ -482,7 +485,11 @@ python patch_do_patch() { | |||
| 482 | except NotFoundError: | 485 | except NotFoundError: |
| 483 | import sys | 486 | import sys |
| 484 | raise bb.build.FuncFailed(str(sys.exc_value)) | 487 | raise bb.build.FuncFailed(str(sys.exc_value)) |
| 485 | resolver.Resolve() | 488 | try: |
| 489 | resolver.Resolve() | ||
| 490 | except PatchError: | ||
| 491 | import sys | ||
| 492 | raise bb.build.FuncFailed(str(sys.exc_value)) | ||
| 486 | } | 493 | } |
| 487 | 494 | ||
| 488 | EXPORT_FUNCTIONS do_patch | 495 | EXPORT_FUNCTIONS do_patch |
