diff options
author | Elliot Smith <elliot.smith@intel.com> | 2016-01-15 13:00:46 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-15 16:29:59 +0000 |
commit | 417f1d3f5306c668e30f2223048b542a46dd5d59 (patch) | |
tree | 8523bf84d908b51745469e83623238fa8c50c83e /bitbake/lib/toaster/toastergui/urls.py | |
parent | c02ee05857b67efe879848f379a7e8442c928770 (diff) | |
download | poky-417f1d3f5306c668e30f2223048b542a46dd5d59.tar.gz |
bitbake: toaster: check inferred file suffixes against list of known types
The algorithm for finding the suffix for image files produced by
the build doesn't reference a list of known file suffixes, so
could be prone to error.
Modify how file suffixes are parsed from the file path so that
they are compared against a list of known types; if this fails,
use the part of the basename of the file path after the first
'.' character.
Also rationalise the places in the views code where we
extract the file name extensions for builds, so they both use
the same algorithm (before, the same code was duplicated in
two places).
[YOCTO #8417]
(Bitbake rev: dd1c509696b8ab5e593cc64637060a58e95fcd1f)
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
0 files changed, 0 insertions, 0 deletions