summaryrefslogtreecommitdiffstats
path: root/scripts/lib
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:57:24 +0100
commit1063622cc6cd6132ede94449954d23ad85028620 (patch)
tree4d020c6902a3c0b7260b5ee0f80c02592ab1a235 /scripts/lib
parent75f1a0ed422669734081f394187c28ef0258dfc2 (diff)
downloadpoky-1063622cc6cd6132ede94449954d23ad85028620.tar.gz
recipetool: create: drop unused convert_pkginfo() function
Code cleanup, no functional changes - this code was never used. (From OE-Core rev: 397b76c7f26e38e761b94b1f7987aafd55048e10) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-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):
937 recipemap[pc] = line.split(':', 1)[1].strip() 937 recipemap[pc] = line.split(':', 1)[1].strip()
938 return recipemap 938 return recipemap
939 939
940def convert_pkginfo(pkginfofile):
941 values = {}
942 with open(pkginfofile, 'r') as f:
943 indesc = False
944 for line in f:
945 if indesc:
946 if line.strip():
947 values['DESCRIPTION'] += ' ' + line.strip()
948 else:
949 indesc = False
950 else:
951 splitline = line.split(': ', 1)
952 key = line[0]
953 value = line[1]
954 if key == 'LICENSE':
955 for dep in value.split(','):
956 dep = dep.split()[0]
957 mapped = depmap.get(dep, '')
958 if mapped:
959 depends.append(mapped)
960 elif key == 'License':
961 values['LICENSE'] = value
962 elif key == 'Summary':
963 values['SUMMARY'] = value
964 elif key == 'Description':
965 values['DESCRIPTION'] = value
966 indesc = True
967 return values
968
969def convert_debian(debpath): 940def convert_debian(debpath):
970 value_map = {'Package': 'PN', 941 value_map = {'Package': 'PN',
971 'Version': 'PV', 942 'Version': 'PV',