[oe-commits] Paul Eggleton : devtool: extract: remove patches subdirectory when S == WORKDIR
git at git.openembedded.org
git at git.openembedded.org
Wed Aug 19 17:08:22 UTC 2015
Module: openembedded-core.git
Branch: master-next
Commit: 2062c88726400e09599aff51af95799a866b90c9
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2062c88726400e09599aff51af95799a866b90c9
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Sun Aug 16 11:09:32 2015 +0100
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).
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
scripts/lib/devtool/standard.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py
index e4ee7f7..658076c 100644
--- a/scripts/lib/devtool/standard.py
+++ b/scripts/lib/devtool/standard.py
@@ -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):
More information about the Openembedded-commits
mailing list