summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 16:16:51 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-21 13:34:29 +0000
commita564d470608aa57e2672efd7674345f4736810a5 (patch)
treee6c6e9c37c57b95a20cc3887b93fed4781fdad28 /lib
parentd27d30f190dd67de5944911c95b146b6c02a8961 (diff)
downloadbitbake-contrib-a564d470608aa57e2672efd7674345f4736810a5.tar.gz
bitbake/fetch2: Add some debug output so its clear when PREMIRRORS, upstream and MIRRORS are being used
(From Poky rev: a72d49478e57b05b99cb1b3beec62a9e79a24e7a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index e4e93945e..a30b4e204 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -891,6 +891,7 @@ class Fetch(object):
if not m.need_update(u, ud, self.d):
localpath = ud.localpath
elif m.try_premirror(u, ud, self.d):
+ logger.debug(1, "Trying PREMIRRORS")
mirrors = mirror_from_string(bb.data.getVar('PREMIRRORS', self.d, True))
localpath = try_mirrors(self.d, ud, mirrors, False)
@@ -899,6 +900,7 @@ class Fetch(object):
if not localpath and m.need_update(u, ud, self.d):
try:
+ logger.debug(1, "Trying Upstream")
m.download(u, ud, self.d)
if hasattr(m, "build_mirror_data"):
m.build_mirror_data(u, ud, self.d)
@@ -909,6 +911,7 @@ class Fetch(object):
# Remove any incomplete fetch
if os.path.isfile(ud.localpath):
bb.utils.remove(ud.localpath)
+ logger.debug(1, "Trying MIRRORS")
mirrors = mirror_from_string(bb.data.getVar('MIRRORS', self.d, True))
localpath = try_mirrors (self.d, ud, mirrors)