Skip to content

Commit

Permalink
support comments in package.list
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed May 31, 2024
1 parent fe176e9 commit 8f13061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lilac2/packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8f13061

Please sign in to comment.