From f93973a26d8786250d0fe84c0b7365be28d33bf4 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 17 May 2024 15:18:19 +0800 Subject: [PATCH] download_official_pkgbuild: fix url --- lilac2/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lilac2/api.py b/lilac2/api.py index 311fa81..d1ccbad 100644 --- a/lilac2/api.py +++ b/lilac2/api.py @@ -587,7 +587,7 @@ def download_official_pkgbuild(name: str) -> list[str]: else: tag = f'{pkgver}-{pkgrel}' - tarball_url = 'https://gitlab.archlinux.org/archlinux/packaging/packages/{0}/-/archive/main/{0}-{1}.tar.bz2'.format(pkgbase, tag) + tarball_url = 'https://gitlab.archlinux.org/archlinux/packaging/packages/{0}/-/archive/{1}/{0}-{1}.tar.bz2'.format(pkgbase, tag) logger.debug('downloading Arch package tarball from: %s', tarball_url) tarball = s.get(tarball_url).content path = f'{pkgbase}-main'