Skip to content

add initial bb.fetch2 code

Yu Ke poky 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7fetch2: copy bb.fetch to bb.fetch2 as initial code basebitbake/lib/bb/fetch2/__init__.py bitbake/lib/bb/fetch2/bzr.py bitbake/lib/bb/fetch2/cvs.py +10 more+2633 -00 replies
2/7bb.fetch2: replace bb.fetch with bb.fetch2 in the bb.fetch2bitbake/lib/bb/fetch2/__init__.py bitbake/lib/bb/fetch2/bzr.py bitbake/lib/bb/fetch2/git.py +9 more+43 -430 replies
3/7bb: add bb.fetcher as dynamic fetch module instance for fetch/fetch2bitbake/lib/bb/fetcher.py+26 -09 replies
4/7BBHandler: remove bb.fetch referrencebitbake/lib/bb/parse/parse_py/BBHandler.py+1 -10 replies
5/7bb.cooker: remove bb.fetch.persistent_database_connection referrencebitbake/lib/bb/cooker.py+0 -60 replies
6/7bb: replace bb.fetch referrence with bb.fetcher instancebitbake/lib/bb/command.py bitbake/lib/bb/cooker.py+4 -30 replies
7/7bbclass: replace the bb.fetch referrence with bb.fetcher instancemeta/classes/base.bbclass meta/classes/distrodata.bbclass meta/classes/patch.bbclass +3 more+33 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] add initial bb.fetch2 code

this patchset add bb.fetch2 as initiaial code base for fetcher overhaul, and bb.fetcher.instance is introduced to swtich between bb.fetch and bb.fetch2.

The purpose of this patchset is to provide a place holder for fetcher overhaul. currently the bb.fetch2 code is mostly the same as bb.fetch. In the future, fetcher overhaul change will come to bb.fetch2, and this allow us to conduct fetcher change without impacting the existing fetcher bb.fetch.

there is no functional change with this patchset, the bb.fetcher.instance is set to bb.fetch by default.

Thanks Richard for the suggestion.

this patchset has been teseted by
- qemux86 poky-image-sato with empty $DL_DIR

Pull URL: git://git.pokylinux.org/poky-contrib.git
Branch: kyu3/fetch2-initial
Browse: http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=kyu3/fetch2-initial

Thanks,
Yu Ke <[email protected]>
---

Yu Ke (7):
fetch2: copy bb.fetch to bb.fetch2 as initial code base bb.fetch2: replace bb.fetch with bb.fetch2 in the bb.fetch2
bb: add bb.fetcher as dynamic fetch module instance for fetch/fetch2
BBHandler: remove bb.fetch referrence
bb.cooker: remove bb.fetch.persistent_database_connection referrence
bb: replace bb.fetch referrence with bb.fetcher instance
bbclass: replace the bb.fetch referrence with bb.fetcher instance

 bitbake/lib/bb/command.py                  |    3 +-
 bitbake/lib/bb/cooker.py                   |   10 +-
 bitbake/lib/bb/fetch2/__init__.py          |  833 ++++++++++++++++++++++++++++
 bitbake/lib/bb/fetch2/bzr.py               |  148 +++++
 bitbake/lib/bb/fetch2/cvs.py               |  172 ++++++
 bitbake/lib/bb/fetch2/git.py               |  261 +++++++++
 bitbake/lib/bb/fetch2/hg.py                |  180 ++++++
 bitbake/lib/bb/fetch2/local.py             |   73 +++
 bitbake/lib/bb/fetch2/osc.py               |  143 +++++
 bitbake/lib/bb/fetch2/perforce.py          |  206 +++++++
 bitbake/lib/bb/fetch2/repo.py              |   98 ++++
 bitbake/lib/bb/fetch2/ssh.py               |  118 ++++
 bitbake/lib/bb/fetch2/svk.py               |  104 ++++
 bitbake/lib/bb/fetch2/svn.py               |  204 +++++++
 bitbake/lib/bb/fetch2/wget.py              |   93 +++
 bitbake/lib/bb/fetcher.py                  |   26 +
 bitbake/lib/bb/parse/parse_py/BBHandler.py |    2 +-
 meta/classes/base.bbclass                  |   20 +-
 meta/classes/distrodata.bbclass            |   18 +-
 meta/classes/patch.bbclass                 |    4 +-
 meta/classes/sstate.bbclass                |   10 +-
 meta/classes/utility-tasks.bbclass         |   12 +-
 meta/classes/utils.bbclass                 |    2 +-
 23 files changed, 2697 insertions(+), 43 deletions(-)
 create mode 100644 bitbake/lib/bb/fetch2/__init__.py
 create mode 100644 bitbake/lib/bb/fetch2/bzr.py
 create mode 100644 bitbake/lib/bb/fetch2/cvs.py
 create mode 100644 bitbake/lib/bb/fetch2/git.py
 create mode 100644 bitbake/lib/bb/fetch2/hg.py
 create mode 100644 bitbake/lib/bb/fetch2/local.py
 create mode 100644 bitbake/lib/bb/fetch2/osc.py
 create mode 100644 bitbake/lib/bb/fetch2/perforce.py
 create mode 100644 bitbake/lib/bb/fetch2/repo.py
 create mode 100644 bitbake/lib/bb/fetch2/ssh.py
 create mode 100644 bitbake/lib/bb/fetch2/svk.py
 create mode 100644 bitbake/lib/bb/fetch2/svn.py
 create mode 100644 bitbake/lib/bb/fetch2/wget.py
 create mode 100644 bitbake/lib/bb/fetcher.py