title: How to prevent bitbake from looking for mirrors for specific host?
body: <p>I am building a system image with yocto where some of the recipes reference software that is hosted on out private git repository server (let's call it <code>repo-host</code>). The checkout works fine, but bitbake always tries to first access the <code>downloads.yoctoproject.org</code> mirror instead of our own server. </p>
  
  <p>In the <code>log.do_fetch</code> of the recipe, this behaviour can be seen in log entries like the following (hostname and repo name anonymized, but the rest is unchanged):</p>
  
  <pre><code>DEBUG: Fetching http://downloads.yoctoproject.org/mirror/sources/git2_repo-host.path.to.the.repo.git..tar.gz using command
  '/usr/bin/env wget -t 2 -T 30 -nv --passive-ftp --no-check-certificate -P /home/amu/projekte/yocto/motec-yocto/build/downloads 'http://downloads.yoctoproject.org/mirror/sources/git2_repo-host.path.to.the.repo.git..tar.gz''
  </code></pre>
  
  <p><strong>Question:</strong> Is there a way to make bitbake globally avoid the mirroring mechanism only for certain hosts?  If not, is there a way to do that per recipe?</p>
  
  <p>Ideally, the mirrors would not be contacted for all sources that are fetched for git URLs starting with a specific hostname (like <code>git://repo-host/...</code>). All other sources (the kernel, gcc etc.) should still use the mirrors.</p>