diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/recipetool/create.py | 2 | ||||
-rw-r--r-- | scripts/lib/scriptutils.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py index ea2ef5be63..94d52d6077 100644 --- a/scripts/lib/recipetool/create.py +++ b/scripts/lib/recipetool/create.py | |||
@@ -1250,7 +1250,7 @@ def match_licenses(licfiles, srctree, d): | |||
1250 | license = 'Unknown' | 1250 | license = 'Unknown' |
1251 | logger.info("Please add the following line for '%s' to a 'lib/recipetool/licenses.csv' " \ | 1251 | logger.info("Please add the following line for '%s' to a 'lib/recipetool/licenses.csv' " \ |
1252 | "and replace `Unknown` with the license:\n" \ | 1252 | "and replace `Unknown` with the license:\n" \ |
1253 | "%s,Unknown" % (os.path.relpath(licfile, srctree), md5value)) | 1253 | "%s,Unknown" % (os.path.relpath(licfile, srctree + "/.."), md5value)) |
1254 | if license: | 1254 | if license: |
1255 | licenses.append((license, os.path.relpath(licfile, srctree), md5value)) | 1255 | licenses.append((license, os.path.relpath(licfile, srctree), md5value)) |
1256 | 1256 | ||
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 81f0b01fa5..32e749dbb1 100644 --- a/scripts/lib/scriptutils.py +++ b/scripts/lib/scriptutils.py | |||
@@ -182,7 +182,10 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr | |||
182 | f.write('UNPACKDIR = "%s"\n' % destdir) | 182 | f.write('UNPACKDIR = "%s"\n' % destdir) |
183 | 183 | ||
184 | # Set S out of the way so it doesn't get created under the workdir | 184 | # Set S out of the way so it doesn't get created under the workdir |
185 | f.write('S = "%s"\n' % os.path.join(tmpdir, 'emptysrc')) | 185 | s_dir = os.path.join(tmpdir, 'emptysrc') |
186 | bb.utils.mkdirhier(s_dir) | ||
187 | f.write('S = "%s"\n' % s_dir) | ||
188 | |||
186 | if not mirrors: | 189 | if not mirrors: |
187 | # We do not need PREMIRRORS since we are almost certainly | 190 | # We do not need PREMIRRORS since we are almost certainly |
188 | # fetching new source rather than something that has already | 191 | # fetching new source rather than something that has already |