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/osc.py | |
| parent | 098e8ded339f3bf864f3bad9871028176f70b12b (diff) | |
| download | poky-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/osc.py')
| -rw-r--r-- | bitbake/lib/bb/fetch2/osc.py | 2 |
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)) |
