Skip to content

Commit

Permalink
fix argument handling
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Jun 29, 2024
1 parent 0a271c2 commit 8c70b42
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions lilac
Original file line number Diff line number Diff line change
Expand Up @@ -532,9 +532,13 @@ def main_may_raise(

# packages we care about
care_pkgs: set[str] = set()
for pkg_to_build in pkgs_from_args:
care_pkgs.update(dep.pkgname for dep in DEPMAP[pkg_to_build])
care_pkgs.add(pkg_to_build)
for p in pkgs_from_args:
if ':' in p:
pkg = p.split(':', 1)[0]
else:
pkg = p
care_pkgs.update(dep.pkgname for dep in DEPMAP[pkg])
care_pkgs.add(pkg)
# make sure they have nvdata
care_pkgs.update(need_rebuild_failed)
care_pkgs.update(need_rebuild_pkgrel)
Expand Down

0 comments on commit 8c70b42

Please sign in to comment.