summaryrefslogtreecommitdiffstats
path: root/build/gen_ins_pkg_script.py
diff options
context:
space:
mode:
Diffstat (limited to 'build/gen_ins_pkg_script.py')
-rw-r--r--build/gen_ins_pkg_script.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/build/gen_ins_pkg_script.py b/build/gen_ins_pkg_script.py
index c3c55cfc..132df25f 100644
--- a/build/gen_ins_pkg_script.py
+++ b/build/gen_ins_pkg_script.py
@@ -20,19 +20,25 @@ def get_packages_name_list(file_list, special_packages):
for file in file_list:
datas = yaml.load(open(file))
for key, value in datas.items():
+ if key == "pip_packages":
+ continue
+
if not key.endswith("packages") and not key.endswith("packages_noarch"):
continue
if not value:
continue
- if value in special_packages:
- continue
+ if not isinstance(value, list):
+ value = [value]
+
+ for i in value:
+ if i in special_packages:
+ continue
- if value not in package_name_list:
- package_name_list += value
+ package_name_list.append(value)
- return package_name_list
+ return list(set(package_name_list)
def generate_download_script(root="", arch="", tmpl="", docker_tmpl="", default_packages="",
special_packages="", special_packages_script_dir="", special_packages_dir=""):