<?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>4895</bug_id>
          
          <creation_ts>2013-07-23 04:36:23 +0000</creation_ts>
          <short_desc>Enhance LSB_Test.sh to detect the download error</short_desc>
          <delta_ts>2013-07-30 07:19:12 +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>OE-Core</product>
          <component>core</component>
          <version>1.5</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Yi Zhao">yi.zhao</assigned_to>
          <cc>corneliux.stoicescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>ke.zou</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ning.zhang</cc>
    
    <cc>Qi.Chen</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.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>34773</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-23 04:36:23 +0000</bug_when>
    <thetext>Git rev: master/31e6eee860b5f9f4ac9ef0889bcff5648de6e3f9

When run LSB_Test.sh to perform LSB test, during packages downloading, if the package does not exist in the remote server, the script can not detect the failure. That is because the default behavior of curl command. 

In normal cases when a HTTP server fails to deliver a file, it returns an HTML document to describe the fail reason (e.g. 404 Not Found). The curl will output this page as a file and not return error. 

Add a &quot;-f&quot; option will prevent curl from outputting that and return error 22.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35148</commentid>
    <comment_count>1</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2013-07-30 07:19:12 +0000</bug_when>
    <thetext>Merge into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=7c1cb16081c022ff9c2fe72ec19341a90b107d22</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>