summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/svn.py
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-01-24 15:56:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-25 12:32:50 +0000
commit029f8584d547c0792ffbe2f83451dcdfe2a3db7f (patch)
treef5d680b8b72371b1039d5aff6fac1b28eb9d530f /bitbake/lib/bb/fetch2/svn.py
parent098e8ded339f3bf864f3bad9871028176f70b12b (diff)
downloadpoky-029f8584d547c0792ffbe2f83451dcdfe2a3db7f.tar.gz
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.py4
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):
139 # update sources there 139 # update sources there
140 os.chdir(ud.moddir) 140 os.chdir(ud.moddir)
141 logger.debug(1, "Running %s", svnupdatecmd) 141 logger.debug(1, "Running %s", svnupdatecmd)
142 bb.fetch2.check_network_access(d, svnupdatecmd)
142 runfetchcmd(svnupdatecmd, d) 143 runfetchcmd(svnupdatecmd, d)
143 else: 144 else:
144 svnfetchcmd = self._buildsvncommand(ud, d, "fetch") 145 svnfetchcmd = self._buildsvncommand(ud, d, "fetch")
@@ -147,6 +148,7 @@ class Svn(Fetch):
147 bb.mkdirhier(ud.pkgdir) 148 bb.mkdirhier(ud.pkgdir)
148 os.chdir(ud.pkgdir) 149 os.chdir(ud.pkgdir)
149 logger.debug(1, "Running %s", svnfetchcmd) 150 logger.debug(1, "Running %s", svnfetchcmd)
151 bb.fetch2.check_network_access(d, svnfetchcmd)
150 runfetchcmd(svnfetchcmd, d) 152 runfetchcmd(svnfetchcmd, d)
151 153
152 scmdata = ud.parm.get("scmdata", "") 154 scmdata = ud.parm.get("scmdata", "")
@@ -180,7 +182,7 @@ class Svn(Fetch):
180 """ 182 """
181 Return the latest upstream revision number 183 Return the latest upstream revision number
182 """ 184 """
183 logger.debug(2, "SVN fetcher hitting network for %s", url) 185 bb.fetch2.check_network_access(d, self._buildsvncommand(ud, d, "info"))
184 186
185 output = runfetchcmd("LANG=C LC_ALL=C " + self._buildsvncommand(ud, d, "info"), d, True) 187 output = runfetchcmd("LANG=C LC_ALL=C " + self._buildsvncommand(ud, d, "info"), d, True)
186 188