summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/cvs.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 22:08:21 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-11 22:08:21 +0000
commit029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34 (patch)
treec4738712f08cb91326bea57aff156c31c289e21e /bitbake/lib/bb/fetch2/cvs.py
parent4a226460d5e158e8adbf74a68717cb9a923e8009 (diff)
downloadpoky-029f19bd3d4dc09fb48bf6e5322d48bb84c4eb34.tar.gz
bitbake/fetch2: Add explict network access exception and handling to give users usable error messages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/cvs.py')
-rw-r--r--bitbake/lib/bb/fetch2/cvs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py
index ae03daf236..12d11e0d5b 100644
--- a/bitbake/lib/bb/fetch2/cvs.py
+++ b/bitbake/lib/bb/fetch2/cvs.py
@@ -132,7 +132,7 @@ class Cvs(FetchMethod):
132 moddir = os.path.join(pkgdir, localdir) 132 moddir = os.path.join(pkgdir, localdir)
133 if os.access(os.path.join(moddir, 'CVS'), os.R_OK): 133 if os.access(os.path.join(moddir, 'CVS'), os.R_OK):
134 logger.info("Update " + loc) 134 logger.info("Update " + loc)
135 bb.fetch2.check_network_access(d, cvsupdatecmd) 135 bb.fetch2.check_network_access(d, cvsupdatecmd, ud.url)
136 # update sources there 136 # update sources there
137 os.chdir(moddir) 137 os.chdir(moddir)
138 cmd = cvsupdatecmd 138 cmd = cvsupdatecmd
@@ -142,7 +142,7 @@ class Cvs(FetchMethod):
142 bb.mkdirhier(pkgdir) 142 bb.mkdirhier(pkgdir)
143 os.chdir(pkgdir) 143 os.chdir(pkgdir)
144 logger.debug(1, "Running %s", cvscmd) 144 logger.debug(1, "Running %s", cvscmd)
145 bb.fetch2.check_network_access(d, cvscmd) 145 bb.fetch2.check_network_access(d, cvscmd, ud.url)
146 cmd = cvscmd 146 cmd = cvscmd
147 147
148 runfetchcmd(cmd, d, cleanup = [moddir]) 148 runfetchcmd(cmd, d, cleanup = [moddir])