aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-27 09:51:33 +1200
committerPaul Eggleton <paul.eggleton@linux.intel.com>2016-06-29 15:11:21 +1200
commit296bb09388c074c98717cb5f895143f72f3a76e6 (patch)
tree1963bc28c2af8c0be0b7612a55633f446bef8cca /scripts
parent7c749720e8f23828d5312b040be0b0451f2fd009 (diff)
downloadopenembedded-core-contrib-paule/recipetool-fixes3.tar.gz
recipetool: create: drop unused convert_pkginfo() functionpaule/recipetool-fixes3
Code cleanup, no functional changes - this code was never used. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'scripts')
-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',