summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/devtool b/scripts/devtool
index a651d8f213..b4bfbb8329 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -117,12 +117,13 @@ def read_workspace():
117 for line in f: 117 for line in f:
118 res = externalsrc_re.match(line.rstrip()) 118 res = externalsrc_re.match(line.rstrip())
119 if res: 119 if res:
120 pn = res.group(2) or os.path.splitext(os.path.basename(fn))[0].split('_')[0] 120 recipepn = os.path.splitext(os.path.basename(fn))[0].split('_')[0]
121 pn = res.group(2) or recipepn
121 # Find the recipe file within the workspace, if any 122 # Find the recipe file within the workspace, if any
122 bbfile = os.path.basename(fn).replace('.bbappend', '.bb').replace('%', '*') 123 bbfile = os.path.basename(fn).replace('.bbappend', '.bb').replace('%', '*')
123 recipefile = glob.glob(os.path.join(config.workspace_path, 124 recipefile = glob.glob(os.path.join(config.workspace_path,
124 'recipes', 125 'recipes',
125 pn, 126 recipepn,
126 bbfile)) 127 bbfile))
127 if recipefile: 128 if recipefile:
128 recipefile = recipefile[0] 129 recipefile = recipefile[0]