summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/hg.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r--bitbake/lib/bb/fetch2/hg.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/hg.py b/bitbake/lib/bb/fetch2/hg.py
index 635ecbfade..4ba28c7100 100644
--- a/bitbake/lib/bb/fetch2/hg.py
+++ b/bitbake/lib/bb/fetch2/hg.py
@@ -123,6 +123,7 @@ class Hg(Fetch):
123 # update sources there 123 # update sources there
124 os.chdir(ud.moddir) 124 os.chdir(ud.moddir)
125 logger.debug(1, "Running %s", updatecmd) 125 logger.debug(1, "Running %s", updatecmd)
126 bb.fetch2.check_network_access(d, updatecmd)
126 runfetchcmd(updatecmd, d) 127 runfetchcmd(updatecmd, d)
127 128
128 else: 129 else:
@@ -132,6 +133,7 @@ class Hg(Fetch):
132 bb.mkdirhier(ud.pkgdir) 133 bb.mkdirhier(ud.pkgdir)
133 os.chdir(ud.pkgdir) 134 os.chdir(ud.pkgdir)
134 logger.debug(1, "Running %s", fetchcmd) 135 logger.debug(1, "Running %s", fetchcmd)
136 bb.fetch2.check_network_access(d, fetchcmd)
135 runfetchcmd(fetchcmd, d) 137 runfetchcmd(fetchcmd, d)
136 138
137 # Even when we clone (fetch), we still need to update as hg's clone 139 # Even when we clone (fetch), we still need to update as hg's clone
@@ -165,6 +167,7 @@ class Hg(Fetch):
165 """ 167 """
166 Compute tip revision for the url 168 Compute tip revision for the url
167 """ 169 """
170 bb.fetch2.check_network_access(d, self._buildhgcommand(ud, d, "info"))
168 output = runfetchcmd(self._buildhgcommand(ud, d, "info"), d) 171 output = runfetchcmd(self._buildhgcommand(ud, d, "info"), d)
169 return output.strip() 172 return output.strip()
170 173