From 232b6f3c92928c333ad1201aa8eb3706e7251cdf Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Mon, 7 Feb 2011 15:42:45 -0800 Subject: fetch2: add runfetchcmd to import for fetchers Signed-off-by: Saul Wold --- bitbake/lib/bb/fetch2/bzr.py | 5 ++++- bitbake/lib/bb/fetch2/cvs.py | 1 + bitbake/lib/bb/fetch2/perforce.py | 1 + bitbake/lib/bb/fetch2/ssh.py | 2 ++ bitbake/lib/bb/fetch2/svk.py | 1 + bitbake/lib/bb/fetch2/wget.py | 7 ++++++- 6 files changed, 15 insertions(+), 2 deletions(-) (limited to 'bitbake/lib/bb/fetch2') diff --git a/bitbake/lib/bb/fetch2/bzr.py b/bitbake/lib/bb/fetch2/bzr.py index e69bc4c8e..bb175662b 100644 --- a/bitbake/lib/bb/fetch2/bzr.py +++ b/bitbake/lib/bb/fetch2/bzr.py @@ -28,7 +28,10 @@ import sys import logging import bb from bb import data -from bb.fetch2 import FetchMethod, FetchError, runfetchcmd, logger +from bb.fetch2 import FetchMethod +from bb.fetch2 import FetchError +from bb.fetch2 import runfetchcmd +from bb.fetch2 import logger class Bzr(FetchMethod): def supports(self, url, ud, d): diff --git a/bitbake/lib/bb/fetch2/cvs.py b/bitbake/lib/bb/fetch2/cvs.py index 69c31e756..3cd28b1fd 100644 --- a/bitbake/lib/bb/fetch2/cvs.py +++ b/bitbake/lib/bb/fetch2/cvs.py @@ -31,6 +31,7 @@ import logging import bb from bb import data from bb.fetch2 import FetchMethod, FetchError, MissingParameterError, logger +from bb.fetch2 import runfetchcmd class Cvs(FetchMethod): """ diff --git a/bitbake/lib/bb/fetch2/perforce.py b/bitbake/lib/bb/fetch2/perforce.py index e3e9c71da..6347834c7 100644 --- a/bitbake/lib/bb/fetch2/perforce.py +++ b/bitbake/lib/bb/fetch2/perforce.py @@ -33,6 +33,7 @@ from bb import data from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError from bb.fetch2 import logger +from bb.fetch2 import runfetchcmd class Perforce(FetchMethod): def supports(self, url, ud, d): diff --git a/bitbake/lib/bb/fetch2/ssh.py b/bitbake/lib/bb/fetch2/ssh.py index 081fe1335..2ee9ab093 100644 --- a/bitbake/lib/bb/fetch2/ssh.py +++ b/bitbake/lib/bb/fetch2/ssh.py @@ -40,6 +40,8 @@ import re, os from bb import data from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError +from bb.fetch2 import logger +from bb.fetch2 import runfetchcmd __pattern__ = re.compile(r''' diff --git a/bitbake/lib/bb/fetch2/svk.py b/bitbake/lib/bb/fetch2/svk.py index 117a22f43..6211cac8d 100644 --- a/bitbake/lib/bb/fetch2/svk.py +++ b/bitbake/lib/bb/fetch2/svk.py @@ -33,6 +33,7 @@ from bb.fetch2 import FetchMethod from bb.fetch2 import FetchError from bb.fetch2 import MissingParameterError from bb.fetch2 import logger +from bb.fetch2 import runfetchcmd class Svk(FetchMethod): """Class to fetch a module or modules from svk repositories""" diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index 5a15147e6..cf6d5bf2a 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py @@ -30,7 +30,12 @@ import logging import bb import urllib from bb import data -from bb.fetch2 import FetchMethod, FetchError, encodeurl, decodeurl, logger, runfetchcmd +from bb.fetch2 import FetchMethod +from bb.fetch2 import FetchError +from bb.fetch2 import encodeurl +from bb.fetch2 import decodeurl +from bb.fetch2 import logger +from bb.fetch2 import runfetchcmd class Wget(FetchMethod): """Class to fetch urls via 'wget'""" -- cgit v1.2.3