mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 12:49:34 +02:00
Move MalformedUrl, VarExpandError into appropriate modules.
(Bitbake rev: e616483b237dafff7f90ba1c09e9ee7c383a2e47) Signed-off-by: Chris Larson <clarson@kergoth.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
committed by
Richard Purdie
parent
9a0da388ce
commit
a3012e1ca9
@@ -80,11 +80,9 @@ if "BBDEBUG" in os.environ:
|
|||||||
if level:
|
if level:
|
||||||
bb.msg.set_debug_level(level)
|
bb.msg.set_debug_level(level)
|
||||||
|
|
||||||
class VarExpandError(Exception):
|
# For compatibility
|
||||||
pass
|
from bb.fetch import MalformedUrl
|
||||||
|
from bb.data import VarExpandError
|
||||||
class MalformedUrl(Exception):
|
|
||||||
"""Exception raised when encountering an invalid url"""
|
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ sys.path.insert(0,path)
|
|||||||
from bb import data_smart
|
from bb import data_smart
|
||||||
import bb
|
import bb
|
||||||
|
|
||||||
|
class VarExpandError(Exception):
|
||||||
|
pass
|
||||||
|
|
||||||
_dict_type = data_smart.DataSmart
|
_dict_type = data_smart.DataSmart
|
||||||
|
|
||||||
def init():
|
def init():
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ import bb
|
|||||||
from bb import data
|
from bb import data
|
||||||
from bb import persist_data
|
from bb import persist_data
|
||||||
|
|
||||||
|
class MalformedUrl(Exception):
|
||||||
|
"""Exception raised when encountering an invalid url"""
|
||||||
|
|
||||||
class FetchError(Exception):
|
class FetchError(Exception):
|
||||||
"""Exception raised when a download fails"""
|
"""Exception raised when a download fails"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user