bitbake: fetch2/wget: Check downloaded file isn't zero size
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 21 Jan 2014 09:58:21 +0000 (09:58 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Jan 2014 11:14:44 +0000 (11:14 +0000)
commit04984ee15127e14ac747940ced63f5176fc0b608
tree38991df1be976ccd7f141f75d13b8837e237dfbb
parent9aec7399a5147025383e138b981cd813cd31c1fe
bitbake: fetch2/wget: Check downloaded file isn't zero size

I can't think of a reason we'd download zero sized files however there are
reasons zero length files can accidently make it onto source mirrors.

This check allows us to ignore the broken files and switch to another
mirror rather than fail with odd checksum failures.

(Bitbake rev: 300cba2e1a720dba4b83b0c76208ea93c608c1de)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/wget.py