diff options
Diffstat (limited to 'scripts/lib/devtool/standard.py')
| -rw-r--r-- | scripts/lib/devtool/standard.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/lib/devtool/standard.py b/scripts/lib/devtool/standard.py index 5f83a91929..b344001298 100644 --- a/scripts/lib/devtool/standard.py +++ b/scripts/lib/devtool/standard.py | |||
| @@ -189,6 +189,9 @@ def add(args, config, basepath, workspace): | |||
| 189 | raise DevtoolError('Couldn\'t find source tree created by recipetool') | 189 | raise DevtoolError('Couldn\'t find source tree created by recipetool') |
| 190 | bb.utils.mkdirhier(recipedir) | 190 | bb.utils.mkdirhier(recipedir) |
| 191 | shutil.move(recipes[0], recipefile) | 191 | shutil.move(recipes[0], recipefile) |
| 192 | # Move any additional files created by recipetool | ||
| 193 | for fn in os.listdir(tempdir): | ||
| 194 | shutil.move(os.path.join(tempdir, fn), recipedir) | ||
| 192 | else: | 195 | else: |
| 193 | raise DevtoolError('Command \'%s\' did not create any recipe file:\n%s' % (e.command, e.stdout)) | 196 | raise DevtoolError('Command \'%s\' did not create any recipe file:\n%s' % (e.command, e.stdout)) |
| 194 | attic_recipe = os.path.join(config.workspace_path, 'attic', recipename, os.path.basename(recipefile)) | 197 | attic_recipe = os.path.join(config.workspace_path, 'attic', recipename, os.path.basename(recipefile)) |
| @@ -199,7 +202,8 @@ def add(args, config, basepath, workspace): | |||
| 199 | shutil.rmtree(tmpsrcdir) | 202 | shutil.rmtree(tmpsrcdir) |
| 200 | shutil.rmtree(tempdir) | 203 | shutil.rmtree(tempdir) |
| 201 | 204 | ||
| 202 | _add_md5(config, recipename, recipefile) | 205 | for fn in os.listdir(recipedir): |
| 206 | _add_md5(config, recipename, os.path.join(recipedir, fn)) | ||
| 203 | 207 | ||
| 204 | if args.fetch and not args.no_git: | 208 | if args.fetch and not args.no_git: |
| 205 | setup_git_repo(srctree, args.version, 'devtool') | 209 | setup_git_repo(srctree, args.version, 'devtool') |
