diff options
author | Cara Salter <cara@devcara.com> | 2023-02-19 12:08:25 -0500 |
---|---|---|
committer | Cara Salter <cara@devcara.com> | 2023-02-19 12:08:25 -0500 |
commit | 7ecaac649f8f4865fe0129a47c2b6f2d32239613 (patch) | |
tree | 713efb82b857226a52317d2994fd40e771dde905 /util.py | |
parent | 504db215f72f3632b8bfb45752020e444178fd6c (diff) | |
download | modpackman-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.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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"]) |