From 9756137b9209223b818e1ae2327397e5ed51778c Mon Sep 17 00:00:00 2001 From: zhiqifeiyang Date: Thu, 23 Feb 2023 09:01:15 +0000 Subject: [PATCH] Import src info for an23 Signed-off-by: zhiqifeiyang --- create_job.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/create_job.py b/create_job.py index 0528274..23d8991 100644 --- a/create_job.py +++ b/create_job.py @@ -39,6 +39,9 @@ def rpm_info(rpms): kernel_info['headers'] = config.webpath + rpm if re.match('kernel-debuginfo', rpm) or re.match('kernel-core', rpm) or re.match('kernel-modules', rpm): rpm_info.append({'pos': 'before', 'rpm': config.webpath+rpm}) + if re.match('kernel-%s' % config.version, rpm) and 'src.rpm' in rpm: + global env_info_list + env_info_list.append("SRC_RPM=%s" % config.webpath + rpm) return kernel_info, rpm_info -- Gitee