From 39719d5b645c00f47962ae297f8d5c3258f161ef Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Sat, 15 Mar 2025 17:02:28 +0900 Subject: [PATCH] Handle "FileNotFoundError" when hashing PKGBUILDs Hash is used for option `hash_compare_PKGBUILD`. --- update.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/update.py b/update.py index 972c45a..959df84 100755 --- a/update.py +++ b/update.py @@ -2685,6 +2685,14 @@ def main(): other_state=other_state, ) pkg_state[pkg]["hash_compare_PKGBUILD_hash"] = "error" + except FileNotFoundError: + log_print( + 'NOTICE: Failed to get sha256sum of PKGBUILD pkg "{}" (file not found)!'.format( + pkg + ), + other_state=other_state, + ) + pkg_state[pkg]["hash_compare_PKGBUILD_hash"] = "not_found" while i < len(pkg_list): if i > furthest_checked: furthest_checked = i -- 2.49.0