diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 06facbcf46..f4e9ea96fa 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -886,6 +886,7 @@ class Fetch(object): | |||
886 | if not m.need_update(u, ud, self.d): | 886 | if not m.need_update(u, ud, self.d): |
887 | localpath = ud.localpath | 887 | localpath = ud.localpath |
888 | elif m.try_premirror(u, ud, self.d): | 888 | elif m.try_premirror(u, ud, self.d): |
889 | logger.debug(1, "Trying PREMIRRORS") | ||
889 | mirrors = mirror_from_string(bb.data.getVar('PREMIRRORS', self.d, True)) | 890 | mirrors = mirror_from_string(bb.data.getVar('PREMIRRORS', self.d, True)) |
890 | localpath = try_mirrors(self.d, ud, mirrors, False) | 891 | localpath = try_mirrors(self.d, ud, mirrors, False) |
891 | 892 | ||
@@ -894,6 +895,7 @@ class Fetch(object): | |||
894 | 895 | ||
895 | if not localpath and m.need_update(u, ud, self.d): | 896 | if not localpath and m.need_update(u, ud, self.d): |
896 | try: | 897 | try: |
898 | logger.debug(1, "Trying Upstream") | ||
897 | m.download(u, ud, self.d) | 899 | m.download(u, ud, self.d) |
898 | if hasattr(m, "build_mirror_data"): | 900 | if hasattr(m, "build_mirror_data"): |
899 | m.build_mirror_data(u, ud, self.d) | 901 | m.build_mirror_data(u, ud, self.d) |
@@ -904,6 +906,7 @@ class Fetch(object): | |||
904 | # Remove any incomplete fetch | 906 | # Remove any incomplete fetch |
905 | if os.path.isfile(ud.localpath): | 907 | if os.path.isfile(ud.localpath): |
906 | bb.utils.remove(ud.localpath) | 908 | bb.utils.remove(ud.localpath) |
909 | logger.debug(1, "Trying MIRRORS") | ||
907 | mirrors = mirror_from_string(bb.data.getVar('MIRRORS', self.d, True)) | 910 | mirrors = mirror_from_string(bb.data.getVar('MIRRORS', self.d, True)) |
908 | localpath = try_mirrors (self.d, ud, mirrors) | 911 | localpath = try_mirrors (self.d, ud, mirrors) |
909 | 912 | ||