]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toasterui: do not filter images by extension
authorAlexandru Damian <alexandru.damian@intel.com>
Fri, 23 Jan 2015 11:15:31 +0000 (11:15 +0000)
committerAlexandru DAMIAN <alexandru.damian@intel.com>
Tue, 27 Jan 2015 14:25:13 +0000 (14:25 +0000)
ToasterUI filters build artifacts by extension in order
to determine if a build artifact is an image or not.

Using IMAGE_FSTYPES for this purpose is not correct as
the varible value holding image extensions is just a coincidence.

So we just look if the filename contains the "rootfs" magic
string, which is a pretty good approximation.

[YOCTO #7213]

Signed-off-by: Alexandru Damian <alexandru.damian@intel.com>
lib/bb/ui/buildinfohelper.py

index be0de6b17c88e013191fb9353a3a5a39ca50c26d..4e2d4a7dec5ab02b4de4c4be0e8c6786fa726c3e 100644 (file)
@@ -770,7 +770,7 @@ class BuildInfoHelper(object):
             if t.is_image == True:
                 output_files = list(evdata.viewkeys())
                 for output in output_files:
-                    if t.target in output and output.split('.rootfs.')[1] in image_fstypes:
+                    if t.target in output and 'rootfs' in output and not output.endswith(".manifest"):
                         self.orm_wrapper.save_target_image_file_information(t, output, evdata[output])
 
     def update_artifact_image_file(self, event):