]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/fetch2: Add some debug output so its clear when PREMIRRORS, upstream and...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Feb 2011 16:16:51 +0000 (16:16 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Feb 2011 16:16:51 +0000 (16:16 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py

index 06facbcf467fb170d12da3ea44fa8d4aecf45d5c..f4e9ea96fada5f395585a8ee9bd45011864c0cb6 100644 (file)
@@ -886,6 +886,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)
 
@@ -894,6 +895,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)
@@ -904,6 +906,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)