diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-20 19:11:10 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2005-05-20 19:11:10 +0000 |
commit | 8e439a474fad2f1042aad192529fc71a89d23751 (patch) | |
tree | a9c90a73aa6e2882ae515c846635bd5cac21b59f /lib | |
parent | e425d0f9704feea38d85ee1b07b9d110ac9e2146 (diff) | |
download | bitbake-8e439a474fad2f1042aad192529fc71a89d23751.tar.gz |
bitbake/lib/bb/data.py:
-Write an expand test case that actually shows a bug I need to fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bb/data.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 4d8bb0de3..e11f47336 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -262,6 +262,9 @@ def expand(s, d, varname = None): >>> setVar('TARGET_MOO', 'yupp', d) >>> print expand('${TARGET_MOO}',d) yupp + >>> setVar('SRC_URI', 'http://somebug.${TARGET_MOO}', d) + >>> print expand('${SRC_URI}', d) + http://somebug.${TARGET_MOO} """ def var_sub(match): key = match.group()[2:-1] |