From 1a67afa6e0c6d8e17ed7a591a8ebb081c2a5673a Mon Sep 17 00:00:00 2001 From: liangchengh <1242747392@qq.com> Date: Thu, 22 Sep 2022 08:31:36 +0000 Subject: [PATCH] update src/ac/acl/source_consistency/check_consistency.py. Signed-off-by: liangchengh <1242747392@qq.com> --- src/ac/acl/source_consistency/check_consistency.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ac/acl/source_consistency/check_consistency.py b/src/ac/acl/source_consistency/check_consistency.py index 0e5cc92..0aa60d3 100644 --- a/src/ac/acl/source_consistency/check_consistency.py +++ b/src/ac/acl/source_consistency/check_consistency.py @@ -83,16 +83,19 @@ class CheckSourceConsistency(BaseCheck): """ os.makedirs(os.path.join(self.rpmbuild_dir, "SOURCES"), exist_ok=True) source_url = self.get_source_url() + logger.info("source_url==============>" + source_url) if source_url == "": logger.warning("no valid source url") return WARNING package_name = self.get_package_from_source(source_url) + logger.info("package_name==============>" + package_name) if package_name not in os.listdir(self._work_dir): logger.warning("no source package file") return WARNING native_sha256sum = self.get_sha256sum(os.path.join(self._work_dir, package_name)) + logger.info("native_sha256sum==============>" + native_sha256sum) if native_sha256sum == "": logger.warning("get sha256sum of native source package failed") return WARNING @@ -150,6 +153,7 @@ class CheckSourceConsistency(BaseCheck): source_url = "" new_spec_content = "" with open(spec_file) as f: + logger.info("spec_text==============>" + f.read()) for line in f: line = line.strip() if line.startswith("%prep"): -- Gitee