]> code.ossystems Code Review - openembedded-core.git/commit
bitbake: Test premirrors and mirrors in checkstatus()
authorJoshua Lock <josh@linux.intel.com>
Fri, 5 Feb 2010 12:08:15 +0000 (12:08 +0000)
committerJoshua Lock <josh@linux.intel.com>
Fri, 5 Feb 2010 12:19:05 +0000 (12:19 +0000)
commitec92133d6fc049b4b666d670d3ac263de5a1d103
tree54cfa7e1cb4b0f5e5e752dff80a33b080dec749b
parentb5965307e9659ed8ac8796c25fc4f0e7e95e8f1c
bitbake: Test premirrors and mirrors in checkstatus()

checkstatus() is used to ensure we can fetch a copy of each file, so it makes
sense to also test PREMIRRORS and MIRRORS in the method.

This patch adds calls to try_mirrors() to the Fetch.checkstatus() method and
changes the try_mirrors() method to take a check argument, which is False by
default. When check is True try_mirrors() will call a fetchers checkstatus()
with the replaced uri.

Signed-off-by: Joshua Lock <josh@linux.intel.com>
bitbake/lib/bb/fetch/__init__.py