summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-29 15:12:04 +1200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-08 09:55:40 +0100
commit397b76c7f26e38e761b94b1f7987aafd55048e10 (patch)
treefc804e211bf01f9af918dc3f3927d96ce4d9e62e
parent50fcd9d1b9a20d49bc873467a82a071f2f2f8b5a (diff)
downloadopenembedded-core-397b76c7f26e38e761b94b1f7987aafd55048e10.tar.gz
openembedded-core-397b76c7f26e38e761b94b1f7987aafd55048e10.tar.bz2
openembedded-core-397b76c7f26e38e761b94b1f7987aafd55048e10.zip
recipetool: create: drop unused convert_pkginfo() function
Code cleanup, no functional changes - this code was never used. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--scripts/lib/recipetool/create.py29
1 files changed, 0 insertions, 29 deletions
diff --git a/scripts/lib/recipetool/create.py b/scripts/lib/recipetool/create.py
index 042e7009cb..430f5bb0c4 100644
--- a/scripts/lib/recipetool/create.py
+++ b/scripts/lib/recipetool/create.py
@@ -937,35 +937,6 @@ def read_pkgconfig_provides(d):
recipemap[pc] = line.split(':', 1)[1].strip()
return recipemap
-def convert_pkginfo(pkginfofile):
- values = {}
- with open(pkginfofile, 'r') as f:
- indesc = False
- for line in f:
- if indesc:
- if line.strip():
- values['DESCRIPTION'] += ' ' + line.strip()
- else:
- indesc = False
- else:
- splitline = line.split(': ', 1)
- key = line[0]
- value = line[1]
- if key == 'LICENSE':
- for dep in value.split(','):
- dep = dep.split()[0]
- mapped = depmap.get(dep, '')
- if mapped:
- depends.append(mapped)
- elif key == 'License':
- values['LICENSE'] = value
- elif key == 'Summary':
- values['SUMMARY'] = value
- elif key == 'Description':
- values['DESCRIPTION'] = value
- indesc = True
- return values
-
def convert_debian(debpath):
value_map = {'Package': 'PN',
'Version': 'PV',