diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-24 15:56:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:32:50 +0000 |
commit | 029f8584d547c0792ffbe2f83451dcdfe2a3db7f (patch) | |
tree | f5d680b8b72371b1039d5aff6fac1b28eb9d530f /bitbake/lib/bb/fetch2/hg.py | |
parent | 098e8ded339f3bf864f3bad9871028176f70b12b (diff) | |
download | openembedded-core-029f8584d547c0792ffbe2f83451dcdfe2a3db7f.tar.gz openembedded-core-029f8584d547c0792ffbe2f83451dcdfe2a3db7f.tar.bz2 openembedded-core-029f8584d547c0792ffbe2f83451dcdfe2a3db7f.zip |
bitbake/fetch2: Instrument fetchers when making network access
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch2/hg.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/hg.py | 3 |
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): # update sources there os.chdir(ud.moddir) logger.debug(1, "Running %s", updatecmd) + bb.fetch2.check_network_access(d, updatecmd) runfetchcmd(updatecmd, d) else: @@ -132,6 +133,7 @@ class Hg(Fetch): bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) logger.debug(1, "Running %s", fetchcmd) + bb.fetch2.check_network_access(d, fetchcmd) runfetchcmd(fetchcmd, d) # Even when we clone (fetch), we still need to update as hg's clone @@ -165,6 +167,7 @@ class Hg(Fetch): """ Compute tip revision for the url """ + bb.fetch2.check_network_access(d, self._buildhgcommand(ud, d, "info")) output = runfetchcmd(self._buildhgcommand(ud, d, "info"), d) return output.strip() |