diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/__init__.py | 8 | ||||
-rw-r--r-- | bitbake/lib/bb/data.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 3 |
3 files changed, 9 insertions, 5 deletions
diff --git a/bitbake/lib/bb/__init__.py b/bitbake/lib/bb/__init__.py index aa0c6de311..3195e72a62 100644 --- a/bitbake/lib/bb/__init__.py +++ b/bitbake/lib/bb/__init__.py | |||
@@ -80,11 +80,9 @@ if "BBDEBUG" in os.environ: | |||
80 | if level: | 80 | if level: |
81 | bb.msg.set_debug_level(level) | 81 | bb.msg.set_debug_level(level) |
82 | 82 | ||
83 | class VarExpandError(Exception): | 83 | # For compatibility |
84 | pass | 84 | from bb.fetch import MalformedUrl |
85 | 85 | from bb.data import VarExpandError | |
86 | class MalformedUrl(Exception): | ||
87 | """Exception raised when encountering an invalid url""" | ||
88 | 86 | ||
89 | 87 | ||
90 | ####################################################################### | 88 | ####################################################################### |
diff --git a/bitbake/lib/bb/data.py b/bitbake/lib/bb/data.py index d3058b9a1d..c3bb1a1f43 100644 --- a/bitbake/lib/bb/data.py +++ b/bitbake/lib/bb/data.py | |||
@@ -47,6 +47,9 @@ sys.path.insert(0,path) | |||
47 | from bb import data_smart | 47 | from bb import data_smart |
48 | import bb | 48 | import bb |
49 | 49 | ||
50 | class VarExpandError(Exception): | ||
51 | pass | ||
52 | |||
50 | _dict_type = data_smart.DataSmart | 53 | _dict_type = data_smart.DataSmart |
51 | 54 | ||
52 | def init(): | 55 | def init(): |
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index cedf839860..875cda8929 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -29,6 +29,9 @@ import bb | |||
29 | from bb import data | 29 | from bb import data |
30 | from bb import persist_data | 30 | from bb import persist_data |
31 | 31 | ||
32 | class MalformedUrl(Exception): | ||
33 | """Exception raised when encountering an invalid url""" | ||
34 | |||
32 | class FetchError(Exception): | 35 | class FetchError(Exception): |
33 | """Exception raised when a download fails""" | 36 | """Exception raised when a download fails""" |
34 | 37 | ||