From: Chris Laplante <[email protected]>
Signed-off-by: Chris Laplante <[email protected]>
---
scripts/devtool | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/scripts/devtool b/scripts/devtool
index acc4e0e982..d7a5903c9f 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -15,7 +15,6 @@ import re
import configparser
import logging
-workspace = {}
config = None
context = None
@@ -87,7 +86,6 @@ class Context:
def read_workspace(basepath):
- global workspace
workspace = {}
if not os.path.exists(os.path.join(config.workspace_path, 'conf',
'layer.conf')):
if context.fixed_setup:
@@ -132,6 +130,8 @@ def read_workspace(basepath):
logger.debug('Found recipe %s' % pnvalues)
workspace[pn] = pnvalues
+ return workspace
+
def create_workspace(args, config, basepath, workspace):
if args.layerpath:
workspacedir = os.path.abspath(args.layerpath)
@@ -330,9 +330,9 @@ def main():
args = parser.parse_args(unparsed_args, namespace=global_args)
try:
+ workspace = {}
if not getattr(args, 'no_workspace', False):
- read_workspace(basepath)
-
+ workspace = read_workspace(basepath)
ret = args.func(args, config, basepath, workspace)
except DevtoolError as err:
if str(err):
--
2.43.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#209690):
https://lists.openembedded.org/g/openembedded-core/message/209690
Mute This Topic: https://lists.openembedded.org/mt/110569673/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-