mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 10:02:22 +01:00
devtool: extract: remove patches subdirectory when S == WORKDIR
Ensure that the "patches" subdirectory is removed from the right location when S == WORKDIR (e.g. devtool extract makedevs). (From OE-Core rev: 2062c88726400e09599aff51af95799a866b90c9) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
5e880674a3
commit
48bb9eca79
@@ -301,7 +301,6 @@ def _extract_source(srctree, keep_temp, devbranch, d):
|
||||
logger.info('Unpacking...')
|
||||
task_executor.exec_func('do_unpack', False)
|
||||
srcsubdir = crd.getVar('S', True)
|
||||
patchsubdir = srcsubdir
|
||||
if srcsubdir == workdir:
|
||||
# Find non-patch sources that were "unpacked" to srctree directory
|
||||
recipe_patches = [os.path.basename(patch) for patch in
|
||||
@@ -322,7 +321,7 @@ def _extract_source(srctree, keep_temp, devbranch, d):
|
||||
|
||||
scriptutils.git_convert_standalone_clone(srcsubdir)
|
||||
|
||||
patchdir = os.path.join(patchsubdir, 'patches')
|
||||
patchdir = os.path.join(srcsubdir, 'patches')
|
||||
haspatches = False
|
||||
if os.path.exists(patchdir):
|
||||
if os.listdir(patchdir):
|
||||
|
||||
Reference in New Issue
Block a user