<?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>3285</bug_id>
          
          <creation_ts>2012-10-12 22:10:47 +0000</creation_ts>
          <short_desc>BB_FETCH_PREMIRROR_ONLY failure message is confusing</short_desc>
          <delta_ts>2013-10-02 11:37:06 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</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></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evadeflow">evadeflow</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>26564</commentid>
    <comment_count>0</comment_count>
    <who name="Evadeflow">evadeflow</who>
    <bug_when>2012-10-12 22:10:47 +0000</bug_when>
    <thetext>Forked this item from issue #3222: when BB_FETCH_PREMIRRORONLY is set and bitbake fails to locate the source to be downloaded in a pre-mirror, it sets BB_NO_NETWORK to 1 so that subsequent attempts to download will fail. The error message emitted in this case looks like:

&gt; ERROR: Function failed: Network access disabled through BB_NO_NETWORK but access rquested with command git clone --bare --mirror http://dev.omapzoom.org/pub/scm/integration/kernel-ubuntu.git /home/evadeflow/projects/poky-git/build/downloads/git2/dev.omapzoom.org.pub.scm.integration.kernel-ubuntu.git (for url None)

This is confusing when the user did set BB_NO_NETWORK himself. A much clearer error message would be:

&gt; ERROR: BB_FETCH_PREMIRRORONLY enabled, but git2_dev.omapzoom.org.pub.scm.integration.kernel-ubuntu.git.tar.gz
&gt; could not be found in any mirror

A quick skim of the code indicates that this is doable, but not altogether trivial. I&apos;ll submit a patch when I have time...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34022</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-06-20 20:59:11 +0000</bug_when>
    <thetext>I cheated a little and merged: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=801fbe5a0c1316ac54a3e8ea61c42a74e28bb0ed
which at least gives the user a pointer to what is going on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37472</commentid>
    <comment_count>2</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-02 11:37:06 +0000</bug_when>
    <thetext>New error contains a more clear debug message. 

Verified in:
poky master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>