diff options
author | Ross Burton <ross.burton@intel.com> | 2013-05-23 18:45:01 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-05-30 20:51:27 +0100 |
commit | 17a12e3c62807a7d60fcbf0aa4fd9cf4a739a204 (patch) | |
tree | 4a3b0cf40e14cdc119a36c271dc31135d608fe86 /meta/classes/pixbufcache.bbclass | |
parent | 1aa828d05ae1614689542c6a9ce6425a088bdc7d (diff) | |
download | openembedded-core-17a12e3c62807a7d60fcbf0aa4fd9cf4a739a204.tar.gz openembedded-core-17a12e3c62807a7d60fcbf0aa4fd9cf4a739a204.tar.bz2 openembedded-core-17a12e3c62807a7d60fcbf0aa4fd9cf4a739a204.zip |
utils: add trim_version() function
Add a helper function that returns just the first <num_parts> of <version>,
split by periods. For example, trim_version("1.2.3", 2) will return "1.2".
This should help reduce the spread of numerous copies of this idea across
classes and recipes.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/pixbufcache.bbclass')
0 files changed, 0 insertions, 0 deletions