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/svn.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/svn.py')
-rw-r--r-- | bitbake/lib/bb/fetch2/svn.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/svn.py b/bitbake/lib/bb/fetch2/svn.py index 547c04fd9e..8d768026be 100644 --- a/bitbake/lib/bb/fetch2/svn.py +++ b/bitbake/lib/bb/fetch2/svn.py @@ -139,6 +139,7 @@ class Svn(Fetch): # update sources there os.chdir(ud.moddir) logger.debug(1, "Running %s", svnupdatecmd) + bb.fetch2.check_network_access(d, svnupdatecmd) runfetchcmd(svnupdatecmd, d) else: svnfetchcmd = self._buildsvncommand(ud, d, "fetch") @@ -147,6 +148,7 @@ class Svn(Fetch): bb.mkdirhier(ud.pkgdir) os.chdir(ud.pkgdir) logger.debug(1, "Running %s", svnfetchcmd) + bb.fetch2.check_network_access(d, svnfetchcmd) runfetchcmd(svnfetchcmd, d) scmdata = ud.parm.get("scmdata", "") @@ -180,7 +182,7 @@ class Svn(Fetch): """ Return the latest upstream revision number """ - logger.debug(2, "SVN fetcher hitting network for %s", url) + bb.fetch2.check_network_access(d, self._buildsvncommand(ud, d, "info")) output = runfetchcmd("LANG=C LC_ALL=C " + self._buildsvncommand(ud, d, "info"), d, True) |