From 7ecaac649f8f4865fe0129a47c2b6f2d32239613 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sun, 19 Feb 2023 12:08:25 -0500 Subject: fix(util): Make update_self compatible with cgit --- util.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'util.py') diff --git a/util.py b/util.py index 64632f2..2d164c7 100644 --- a/util.py +++ b/util.py @@ -54,9 +54,10 @@ def update_self(): global config base_url = config["pack"]["pack_base_url"].strip("/") + "/" - download_text_file(base_url + "pack.ini?inline=false", "pack.ini") - download_text_file(base_url + "pack-lock.ini?inline=false", "pack-lock.ini") - download_file(base_url + "icon.png?inline=false", "icon.png") + base_url = base_url.replace('tree', 'plain') + download_text_file(base_url + "pack.ini", "pack.ini") + download_text_file(base_url + "pack-lock.ini", "pack-lock.ini") + download_file(base_url + "icon.png", "icon.png") pack_lock = RawConfigParser() pack_lock.read(["pack-lock.ini"]) -- cgit v1.2.3