summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/cvs.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/cvs.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/cvs.py')
-rw-r--r--bitbake/lib/bb/fetch2/cvs.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py
index 8e72090488..4915e74e4b 100644
--- a/bitbake/lib/bb/fetch2/cvs.py
+++ b/bitbake/lib/bb/fetch2/cvs.py
@@ -131,6 +131,7 @@ class Cvs(Fetch):
131 moddir = os.path.join(pkgdir, localdir) 131 moddir = os.path.join(pkgdir, localdir)
132 if os.access(os.path.join(moddir, 'CVS'), os.R_OK): 132 if os.access(os.path.join(moddir, 'CVS'), os.R_OK):
133 logger.info("Update " + loc) 133 logger.info("Update " + loc)
134 bb.fetch2.check_network_access(d, cvsupdatecmd)
134 # update sources there 135 # update sources there
135 os.chdir(moddir) 136 os.chdir(moddir)
136 myret = os.system(cvsupdatecmd) 137 myret = os.system(cvsupdatecmd)
@@ -140,6 +141,7 @@ class Cvs(Fetch):
140 bb.mkdirhier(pkgdir) 141 bb.mkdirhier(pkgdir)
141 os.chdir(pkgdir) 142 os.chdir(pkgdir)
142 logger.debug(1, "Running %s", cvscmd) 143 logger.debug(1, "Running %s", cvscmd)
144 bb.fetch2.check_network_access(d, cvscmd)
143 myret = os.system(cvscmd) 145 myret = os.system(cvscmd)
144 146
145 if myret != 0 or not os.access(moddir, os.R_OK): 147 if myret != 0 or not os.access(moddir, os.R_OK):