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/bzr.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/bzr.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/bzr.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index 608ecc7474..6e1970b715 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py @@ -85,11 +85,13 @@ class Bzr(Fetch): if os.access(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir), '.bzr'), os.R_OK): bzrcmd = self._buildbzrcommand(ud, d, "update") logger.debug(1, "BZR Update %s", loc) + bb.fetch2.check_network_access(d, bzrcmd) os.chdir(os.path.join (ud.pkgdir, os.path.basename(ud.path))) runfetchcmd(bzrcmd, d) else: bb.utils.remove(os.path.join(ud.pkgdir, os.path.basename(ud.pkgdir)), True) bzrcmd = self._buildbzrcommand(ud, d, "fetch") + bb.fetch2.check_network_access(d, bzrcmd) logger.debug(1, "BZR Checkout %s", loc) bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) @@ -130,6 +132,8 @@ class Bzr(Fetch): """ logger.debug(2, "BZR fetcher hitting network for %s", url) + bb.fetch2.check_network_access(d, self._buildbzrcommand(ud, d, "revno")) + output = runfetchcmd(self._buildbzrcommand(ud, d, "revno"), d, True) return output.strip() |