提交 255dba99 编写于 作者: Y Yihuang Yu 提交者: yihyu

rh_kernel_update: update pkg_pattern to handle brew "Signatures"

The output returned by "brew buildinfo xxx" has a "Signatures" field,
update the "pkg_pattern" to handle this issue.
Signed-off-by: NYihuang Yu <yihyu@redhat.com>
上级 91888285
......@@ -90,9 +90,9 @@ def run(test, params, env):
for pkg_name in params["kernel_pkgs"].split():
pkg_params = params.object_params(pkg_name)
pkg_arch = pkg_params["pkg_arch"]
# package pattern: n-v-r.a
pkg_pattern = "%s-%s.%s." % (pkg_name, ver_rev, pkg_arch)
pkg_pattern = re.compile(".*/%s.*" % re.escape(pkg_pattern))
# package pattern: n-v-r.a.rpm
pkg_pattern = "%s-%s.%s.rpm" % (pkg_name, ver_rev, pkg_arch)
pkg_pattern = re.compile(".*/%s" % re.escape(pkg_pattern))
match = pkg_pattern.search(buildinfo, re.M | re.I)
if not match:
test.error("Could not get the link of '%s' in buildinfo"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册