From 9bec633fca41d4602fc1de334d9ae74197948d34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B1=E5=A0=82=E7=8F=82?= Date: Mon, 6 Jan 2025 08:21:53 +0000 Subject: [PATCH] update src/ac/acl/source_consistency/check_consistency.py. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 邱堂珂 --- src/ac/acl/source_consistency/check_consistency.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ac/acl/source_consistency/check_consistency.py b/src/ac/acl/source_consistency/check_consistency.py index ed8c4ef..baac389 100644 --- a/src/ac/acl/source_consistency/check_consistency.py +++ b/src/ac/acl/source_consistency/check_consistency.py @@ -63,9 +63,9 @@ class CheckSourceConsistency(BaseCheck): try: with open(self.tarball_path, "r") as f: content = f.read() - if "version " in content and "oid sha256:" in content and "size" in content: - native_sha256sum = re.search("oid sha256:(.*)", content).group(1) - return native_sha256sum.strip() + native_sha256sum = re.search("oid sha256:(.*)", content).group(1) + logger.info("tarball formatting is lfs, oid is " + native_sha256sum) + return native_sha256sum.strip() except Exception as e: logger.info("package type is base tarball") logger.info(str(e)) -- Gitee