summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
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',