Bug 3285 - BB_FETCH_PREMIRROR_ONLY failure message is confusing
Summary: BB_FETCH_PREMIRROR_ONLY failure message is confusing
Status: VERIFIED FIXED
Alias: None
Product: BitBake
Classification: Build System, Metadata & Runtime
Component: bitbake (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.5
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-10-12 22:10 UTC by Evadeflow
Modified: 2013-10-02 11:37 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evadeflow 2012-10-12 22:10:47 UTC
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:

> 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:

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

A quick skim of the code indicates that this is doable, but not altogether trivial. I'll submit a patch when I have time...
Comment 1 Richard Purdie 2013-06-20 20:59:11 UTC
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.
Comment 2 Stoicescu Cornel 2013-10-02 11:37:06 UTC
New error contains a more clear debug message. 

Verified in:
poky master:4d8ab87d25ea6e59dc88375813ef88ee0ac813d0