Skip to content

Commit

Permalink
scripting: fix global name (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
haampie committed Nov 7, 2023
1 parent 5846a34 commit 2e56c79
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion outputs/scripting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ import spack.store
import spack.cmd
import sys
database = spack.store.STORE.db
include_spec = Spec(sys.argv[1])
exclude_spec = Spec(sys.argv[2])
all_included = spack.store.db.query(include_spec)
all_included = database.query(include_spec)
result = filter(lambda spec: not spec.satisfies(exclude_spec), all_included)
spack.cmd.display_specs(result)
Expand Down

0 comments on commit 2e56c79

Please sign in to comment.