aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-02-19 12:08:25 -0500
committerCara Salter <cara@devcara.com>2023-02-19 12:08:25 -0500
commit7ecaac649f8f4865fe0129a47c2b6f2d32239613 (patch)
tree713efb82b857226a52317d2994fd40e771dde905 /util.py
parent504db215f72f3632b8bfb45752020e444178fd6c (diff)
downloadmodpackman-7ecaac649f8f4865fe0129a47c2b6f2d32239613.tar.gz
modpackman-7ecaac649f8f4865fe0129a47c2b6f2d32239613.zip
fix(util): Make update_self compatible with cgit2.1.0
Diffstat (limited to 'util.py')
-rw-r--r--util.py7
1 files changed, 4 insertions, 3 deletions
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"])