From e01dadbdec8c47f428f4b41a35993216989e5f43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9D=A6?= Date: Fri, 11 Apr 2025 23:09:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E6=A3=80=E6=9F=A5=E6=97=A5=E5=BF=97=EF=BC=8C?= =?UTF-8?q?=E7=A1=AE=E4=BF=9D=E8=BE=93=E5=87=BA=E7=BB=9D=E5=AF=B9=E8=B7=AF?= =?UTF-8?q?=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- list.yaml | 16 ++++++++-------- update_files.py | 3 +-- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/list.yaml b/list.yaml index db80350..6a3d72d 100644 --- a/list.yaml +++ b/list.yaml @@ -1,19 +1,19 @@ # 需要自动更新的文件列表 # Docker -- file: /docker/install/install.sh +- file: docker/install/install.sh source: https://raw.githubusercontent.com/docker/docker-install/master/install.sh -- file: /docker/install/debian/gpg +- file: docker/install/debian/gpg source: https://download.docker.com/linux/debian/gpg -- file: /docker/install/ubuntu/gpg +- file: docker/install/ubuntu/gpg source: https://download.docker.com/linux/ubuntu/gpg -- file: /docker/install/raspbian/gpg +- file: docker/install/raspbian/gpg source: https://download.docker.com/linux/raspbian/gpg -- file: /docker/install/fedora/docker-ce.repo +- file: docker/install/fedora/docker-ce.repo source: https://download.docker.com/linux/fedora/docker-ce.repo -- file: /docker/install/centos/docker-ce.repo +- file: docker/install/centos/docker-ce.repo source: https://download.docker.com/linux/centos/docker-ce.repo # AdGuard -- file: /adguard/filter_1.txt +- file: adguard/filter_1.txt source: https://adguardteam.github.io/HostlistsRegistry/assets/filter_1.txt -- file: /adguard/217heidai.txt +- file: adguard/217heidai.txt source: https://raw.githubusercontent.com/217heidai/adblockfilters/main/rules/adblockdns.txt \ No newline at end of file diff --git a/update_files.py b/update_files.py index 729d097..3418a28 100644 --- a/update_files.py +++ b/update_files.py @@ -49,14 +49,13 @@ def process_item(item): os.makedirs(os.path.dirname(abs_file_path), exist_ok=True) updated = False - logging.info(f"📝 检查 {abs_file_path} 是否需要更新") if os.path.exists(abs_file_path): with open(abs_file_path, "r", encoding="utf-8") as f: old_content = f.read() if old_content != new_content: updated = True else: - logging.warning(f"⚠️ 文件 {file_path} 不存在,将创建。") + logging.warning(f"⚠️ 文件 {abs_file_path} 不存在,将创建。") updated = True if updated: