Skip to content

Commit d6962b8

Browse files
committed
download_official_pkgbuild: still fix url and pathname
1 parent f93973a commit d6962b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lilac2/api.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -583,14 +583,14 @@ def download_official_pkgbuild(name: str) -> list[str]:
583583
pkgver = pkg['pkgver']
584584
pkgrel = pkg['pkgrel']
585585
if epoch:
586-
tag = f'{epoch}:{pkgver}-{pkgrel}'
586+
tag = f'{epoch}-{pkgver}-{pkgrel}'
587587
else:
588588
tag = f'{pkgver}-{pkgrel}'
589589

590590
tarball_url = 'https://gitlab.archlinux.org/archlinux/packaging/packages/{0}/-/archive/{1}/{0}-{1}.tar.bz2'.format(pkgbase, tag)
591591
logger.debug('downloading Arch package tarball from: %s', tarball_url)
592592
tarball = s.get(tarball_url).content
593-
path = f'{pkgbase}-main'
593+
path = f'{pkgbase}-{tag}'
594594
files = []
595595

596596
with tarfile.open(
@@ -600,7 +600,7 @@ def download_official_pkgbuild(name: str) -> list[str]:
600600
dirname, filename = os.path.split(tarinfo.name)
601601
if dirname != path:
602602
continue
603-
if filename in ('.SRCINFO', '.gitignore'):
603+
if filename in ('.SRCINFO', '.gitignore', '.nvchecker.toml'):
604604
continue
605605
tarinfo.name = filename
606606
logger.debug('extract file %s.', filename)

0 commit comments

Comments
 (0)