summaryrefslogtreecommitdiff
path: root/scripts/lib/wic/utils/oe
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-01-31 12:37:45 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-02 17:37:35 +0000
commit4adbac84046ff744f1452b5ff4d017d17d2d45e2 (patch)
tree419435c0c5a7f8ea1503d9c101c36f8285ab34a5 /scripts/lib/wic/utils/oe
parente3c43ce3261663225aeba50b8c6229577574f9b7 (diff)
downloadopenembedded-core-4adbac84046ff744f1452b5ff4d017d17d2d45e2.tar.gz
openembedded-core-4adbac84046ff744f1452b5ff4d017d17d2d45e2.tar.bz2
openembedded-core-4adbac84046ff744f1452b5ff4d017d17d2d45e2.zip
wic: partition: simlify calling plugin methods
Replaced parse_sourceparams function with list comprehension. Used local variables instead of attributes. Moved global variable to the local scope. [YOCTO #10619] Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'scripts/lib/wic/utils/oe')
-rw-r--r--scripts/lib/wic/utils/oe/misc.py23
1 files changed, 0 insertions, 23 deletions
diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index 3737c4b1f0..6781d8381a 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -222,26 +222,3 @@ def get_bitbake_var(var, image=None, cache=True):
get_var method of BB_VARS singleton.
"""
return BB_VARS.get_var(var, image, cache)
-
-def parse_sourceparams(sourceparams):
- """
- Split sourceparams string of the form key1=val1[,key2=val2,...]
- into a dict. Also accepts valueless keys i.e. without =.
-
- Returns dict of param key/val pairs (note that val may be None).
- """
- params_dict = {}
-
- params = sourceparams.split(',')
- if params:
- for par in params:
- if not par:
- continue
- if not '=' in par:
- key = par
- val = None
- else:
- key, val = par.split('=')
- params_dict[key] = val
-
- return params_dict