<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>2795</bug_id>
          
          <creation_ts>2012-07-19 02:39:37 +0000</creation_ts>
          <short_desc>hob2: remove the hardcoded map between image types and real image extend name</short_desc>
          <delta_ts>2012-09-10 09:06:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>Hob</product>
          <component>hob</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(QA testing completed) Done </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Kang">kai.kang</reporter>
          <assigned_to name="Kai Kang">kai.kang</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>hongnax.xu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>shane.wang</cc>
    
    <cc>song.liu</cc>
    
    <cc>yilongx.y.sun</cc>
    
    <cc>zhenfeng.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>23233</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-07-19 02:39:37 +0000</bug_when>
    <thetext>Successor of Yocto 2709
When a new image type added, hob need to update the hardcoded map.
Avoid it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24959</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Kang">kai.kang</who>
    <bug_when>2012-09-10 06:33:56 +0000</bug_when>
    <thetext>Yocto commit: da98eddd02118f4330d05a1262617ba84029a13a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24963</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-09-10 09:06:31 +0000</bug_when>
    <thetext>when using git commit before da98eddd02118f4330d05a1262617ba84029a13a (commit:19ff55a53b436d463f9577adaed15be77708f0d2) and steps below:
1. bitbake core-image-minimal
2. in tmp/deploy/images , create a file &quot;test.abc&quot;.
3. in file &quot;path_to_git/meta/classes/image_types.bbclass&quot; ,add new image types &apos;abc&apos; as below:
IMAGE_TYPES = &quot;jffs2 sum.jffs2 cramfs ext2 ext2.gz ext2.bz2 ext3 ext3.gz ext2.lzma btrfs live squashfs squashfs-lzma ubi tar tar.gz tar.bz2 tar.xz cpio cpio.gz cpio.xz cpio.lzma vmdk elf abc&quot;
4. run &quot;hob&quot; and select &quot;Images&quot; button. 

from &quot;Open My Images&quot; window, &quot;test&quot; can not be found in the file lists,errors met in backend:

Traceback (most recent call last):
  File &quot;/buildarea/poky.ubuntu.new/bitbake/lib/bb/ui/crumbs/imageconfigurationpage.py&quot;, line 431, in my_images_button_clicked_cb
    self.builder.show_load_my_images_dialog()
  File &quot;/buildarea/poky.ubuntu.new/bitbake/lib/bb/ui/crumbs/builder.py&quot;, line 1120, in show_load_my_images_dialog
    gtk.FILE_CHOOSER_ACTION_SAVE)
  File &quot;/buildarea/poky.ubuntu.new/bitbake/lib/bb/ui/crumbs/hig.py&quot;, line 1188, in __init__
    self.fill_image_store()
  File &quot;/buildarea/poky.ubuntu.new/bitbake/lib/bb/ui/crumbs/hig.py&quot;, line 1268, in fill_image_store
    for real_image_type in hcc.SUPPORTED_IMAGE_TYPES[image_type]:
KeyError: &apos;abc&apos;
---------------------

when using poky master branch newest(after da98eddd02118f4330d05a1262617ba84029a13a) and the same steps as above:
from &quot;Open My Images&quot; window,&quot;test&quot; can be found in the file lists and can be opened, no error met in backend.

git info:5343cdb20ee56a8b507733c637dcc2466ae13288
git branch: poky/master
test env: ubuntu 12.04 x86_64</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>