diff options
author | Alejandro Hernandez <alejandro.hernandez@linux.intel.com> | 2014-11-05 13:21:58 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-11-09 10:17:04 +0000 |
commit | c9cc652e88ddedddf8a2f23fb9b8c024616526d7 (patch) | |
tree | 33b6e0f1415ee47208a9d8aab48ae8ab05f0f160 /meta/lib/oe/utils.py | |
parent | fb2e1fd7d2df68d02f5da7dbf4390ea03e7eafdb (diff) | |
download | openembedded-core-contrib-c9cc652e88ddedddf8a2f23fb9b8c024616526d7.tar.gz |
image-buildinfo.bbclass: new class, writes build information to image
Writes build information to target filesystem on /etc/build such as enabled
layers, their current status and commit.
squashspaces was moved to oe/utils.py to make it available to different classes
and avoid code duplication.
[YOCTO #6770]
Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oe/utils.py')
-rw-r--r-- | meta/lib/oe/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/utils.py b/meta/lib/oe/utils.py index 35442568e26..1f84ba4b25a 100644 --- a/meta/lib/oe/utils.py +++ b/meta/lib/oe/utils.py @@ -180,3 +180,7 @@ def multiprocess_exec(commands, function): pool.terminate() pool.join() raise + +def squashspaces(string): + import re + return re.sub("\s+", " ", string).strip() |