<?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>1855</bug_id>
          
          <creation_ts>2011-12-20 20:49:35 +0000</creation_ts>
          <short_desc>[bitbake-layers] no attribute &apos;fetch2&apos; error with a new working dir</short_desc>
          <delta_ts>2012-01-04 06:17:39 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Fix merged to master (4 Jan)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jiajun Xu">jiajun.xu</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>17773</commentid>
    <comment_count>0</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2011-12-20 20:49:35 +0000</bug_when>
    <thetext>tree/branch: poky/1.2_M1
commit: b806f726b1db2cb605869c1022ef727c1110255b

If I run bitbake-layers(show_appends, show_layers, show_overlayed) in a new workding dir, it will report &quot;&apos;module&apos; object has no attribute &apos;fetch2&apos;&quot;. If I run some other bitbake command like &quot;bitbake -s&quot; under the folder, the issue won&apos;t happen again with bitbake-layers.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17883</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-12-29 05:59:18 +0000</bug_when>
    <thetext>A simple &quot;import bb.fetch2&quot; at the beginning of bitbake-layers corrects this; however I&apos;m not sure if this is an acceptable fix. Another alternative would be to have a wrapper script that simply sets BBFETCH2=True, but I&apos;m not sure I particularly like that idea either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17884</commentid>
    <comment_count>2</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-12-29 06:37:09 +0000</bug_when>
    <thetext>Chris Larson seems to think the former import approach is OK, have sent a patch to the bitbake-devel list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17951</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-01-04 06:17:39 +0000</bug_when>
    <thetext>Fix merged to master in revision f540034864cb2afdd47486b271900e1021ae0b27.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>