summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/osc.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch2/osc.py')
-rw-r--r--bitbake/lib/bb/fetch2/osc.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/osc.py b/bitbake/lib/bb/fetch2/osc.py
index 619e2f15dd..25dcb7bd67 100644
--- a/bitbake/lib/bb/fetch2/osc.py
+++ b/bitbake/lib/bb/fetch2/osc.py
@@ -92,6 +92,7 @@ class Osc(Fetch):
92 # update sources there 92 # update sources there
93 os.chdir(ud.moddir) 93 os.chdir(ud.moddir)
94 logger.debug(1, "Running %s", oscupdatecmd) 94 logger.debug(1, "Running %s", oscupdatecmd)
95 bb.fetch2.check_network_access(d, oscupdatecmd)
95 runfetchcmd(oscupdatecmd, d) 96 runfetchcmd(oscupdatecmd, d)
96 else: 97 else:
97 oscfetchcmd = self._buildosccommand(ud, d, "fetch") 98 oscfetchcmd = self._buildosccommand(ud, d, "fetch")
@@ -100,6 +101,7 @@ class Osc(Fetch):
100 bb.mkdirhier(ud.pkgdir) 101 bb.mkdirhier(ud.pkgdir)
101 os.chdir(ud.pkgdir) 102 os.chdir(ud.pkgdir)
102 logger.debug(1, "Running %s", oscfetchcmd) 103 logger.debug(1, "Running %s", oscfetchcmd)
104 bb.fetch2.check_network_access(d, oscfetchcmd)
103 runfetchcmd(oscfetchcmd, d) 105 runfetchcmd(oscfetchcmd, d)
104 106
105 os.chdir(os.path.join(ud.pkgdir + ud.path)) 107 os.chdir(os.path.join(ud.pkgdir + ud.path))