diff options
Diffstat (limited to 'meta/lib/oe/recipeutils.py')
| -rw-r--r-- | meta/lib/oe/recipeutils.py | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/meta/lib/oe/recipeutils.py b/meta/lib/oe/recipeutils.py index ae83aabec1..92fa431e0b 100644 --- a/meta/lib/oe/recipeutils.py +++ b/meta/lib/oe/recipeutils.py | |||
| @@ -382,6 +382,7 @@ def copy_recipe_files(d, tgt_dir, whole_dir=False, download=True): | |||
| 382 | 382 | ||
| 383 | def get_recipe_local_files(d, patches=False, archives=False): | 383 | def get_recipe_local_files(d, patches=False, archives=False): |
| 384 | """Get a list of local files in SRC_URI within a recipe.""" | 384 | """Get a list of local files in SRC_URI within a recipe.""" |
| 385 | import oe.patch | ||
| 385 | uris = (d.getVar('SRC_URI', True) or "").split() | 386 | uris = (d.getVar('SRC_URI', True) or "").split() |
| 386 | fetch = bb.fetch2.Fetch(uris, d) | 387 | fetch = bb.fetch2.Fetch(uris, d) |
| 387 | # FIXME this list should be factored out somewhere else (such as the | 388 | # FIXME this list should be factored out somewhere else (such as the |
| @@ -393,7 +394,7 @@ def get_recipe_local_files(d, patches=False, archives=False): | |||
| 393 | for uri in uris: | 394 | for uri in uris: |
| 394 | if fetch.ud[uri].type == 'file': | 395 | if fetch.ud[uri].type == 'file': |
| 395 | if (not patches and | 396 | if (not patches and |
| 396 | bb.utils.exec_flat_python_func('patch_path', uri, fetch, '', expand=False)): | 397 | oe.patch.patch_path(uri, fetch, '', expand=False)): |
| 397 | continue | 398 | continue |
| 398 | # Skip files that are referenced by absolute path | 399 | # Skip files that are referenced by absolute path |
| 399 | fname = fetch.ud[uri].basepath | 400 | fname = fetch.ud[uri].basepath |
| @@ -418,10 +419,9 @@ def get_recipe_local_files(d, patches=False, archives=False): | |||
| 418 | 419 | ||
| 419 | def get_recipe_patches(d): | 420 | def get_recipe_patches(d): |
| 420 | """Get a list of the patches included in SRC_URI within a recipe.""" | 421 | """Get a list of the patches included in SRC_URI within a recipe.""" |
| 422 | import oe.patch | ||
| 423 | patches = oe.patch.src_patches(d, expand=False) | ||
| 421 | patchfiles = [] | 424 | patchfiles = [] |
| 422 | # Execute src_patches() defined in patch.bbclass - this works since that class | ||
| 423 | # is inherited globally | ||
| 424 | patches = bb.utils.exec_flat_python_func('src_patches', d, expand=False) | ||
| 425 | for patch in patches: | 425 | for patch in patches: |
| 426 | _, _, local, _, _, parm = bb.fetch.decodeurl(patch) | 426 | _, _, local, _, _, parm = bb.fetch.decodeurl(patch) |
| 427 | patchfiles.append(local) | 427 | patchfiles.append(local) |
| @@ -438,9 +438,7 @@ def get_recipe_patched_files(d): | |||
| 438 | change mode ('A' for add, 'D' for delete or 'M' for modify) | 438 | change mode ('A' for add, 'D' for delete or 'M' for modify) |
| 439 | """ | 439 | """ |
| 440 | import oe.patch | 440 | import oe.patch |
| 441 | # Execute src_patches() defined in patch.bbclass - this works since that class | 441 | patches = oe.patch.src_patches(d, expand=False) |
| 442 | # is inherited globally | ||
| 443 | patches = bb.utils.exec_flat_python_func('src_patches', d, expand=False) | ||
| 444 | patchedfiles = {} | 442 | patchedfiles = {} |
| 445 | for patch in patches: | 443 | for patch in patches: |
| 446 | _, _, patchfile, _, _, parm = bb.fetch.decodeurl(patch) | 444 | _, _, patchfile, _, _, parm = bb.fetch.decodeurl(patch) |
