From 8f130618b65499ce294640bfcff8bf63c29fd1f1 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Fri, 31 May 2024 18:51:41 +0800 Subject: [PATCH] support comments in package.list --- lilac2/packages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lilac2/packages.py b/lilac2/packages.py index abbdbdf9..45ae74c6 100644 --- a/lilac2/packages.py +++ b/lilac2/packages.py @@ -140,7 +140,7 @@ def get_split_packages(pkg: Path) -> Set[Tuple[str, str]]: pkgfile = pkg / 'package.list' if pkgfile.exists(): with open(pkgfile) as f: - packages.update((pkgbase, x) for x in f.read().split()) + packages.update((pkgbase, l.rstrip()) for l in f if not l.startswith('#')) return packages found = False