diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2017-08-31 11:54:17 +1200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-31 23:30:03 +0100 |
commit | cd683ca41d952f5d05224498f68f79cfe5adf5ea (patch) | |
tree | eff2e132feeb4b225914f2fbdee75b2c2dbe3746 /scripts/lib/scriptutils.py | |
parent | e3ccf049021909f593a935ca3782718e0e2387fb (diff) | |
download | poky-cd683ca41d952f5d05224498f68f79cfe5adf5ea.tar.gz |
scriptutils: fix fetch_url() to use lowercase dummy recipe name
recipetool create (and hence devtool add) and devtool upgrade use
fetch_url() which creates a dummy recipe in order to fetch source.
Previously the random part of the name was using uppercase characters,
and this triggers a QA warning after OE-Core commit
4713f8b2c4f2c74239d284adcf1e59e61aa66576, so use lowercase instead as I
really should have in the first place.
(From OE-Core rev: b48c48b00e82491d1c69e4d89a79c6242361abec)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/scriptutils.py')
-rw-r--r-- | scripts/lib/scriptutils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/scriptutils.py b/scripts/lib/scriptutils.py index 11f1a78e97..85b1c949bf 100644 --- a/scripts/lib/scriptutils.py +++ b/scripts/lib/scriptutils.py | |||
@@ -134,7 +134,7 @@ def fetch_url(tinfoil, srcuri, srcrev, destdir, logger, preserve_tmp=False, mirr | |||
134 | # for do_fetch and do_unpack | 134 | # for do_fetch and do_unpack |
135 | # I'd use tempfile functions here but underscores can be produced by that and those | 135 | # I'd use tempfile functions here but underscores can be produced by that and those |
136 | # aren't allowed in recipe file names except to separate the version | 136 | # aren't allowed in recipe file names except to separate the version |
137 | rndstring = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(8)) | 137 | rndstring = ''.join(random.choice(string.ascii_lowercase + string.digits) for _ in range(8)) |
138 | fetchrecipe = os.path.join(fetchrecipedir, 'tmp-recipetool-%s.bb' % rndstring) | 138 | fetchrecipe = os.path.join(fetchrecipedir, 'tmp-recipetool-%s.bb' % rndstring) |
139 | fetchrecipepn = os.path.splitext(os.path.basename(fetchrecipe))[0] | 139 | fetchrecipepn = os.path.splitext(os.path.basename(fetchrecipe))[0] |
140 | logger.debug('Generating initial recipe %s for fetching' % fetchrecipe) | 140 | logger.debug('Generating initial recipe %s for fetching' % fetchrecipe) |