Skip to content

Commit

Permalink
Revert the previous commit for this file
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Oct 8, 2024
1 parent 3419dac commit 57e59a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/delete-unused.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This will delete unused (from example from a previous failed installation) specs that
# are no longer in the current installation
spack -e . python -c 'from spack.cmd import uninstall; uninstall.do_uninstall([x for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())], False)'
spack python -c 'from spack.cmd import uninstall; uninstall.do_uninstall([x for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())], False)'

# Same command but only print what would be deleted
# spack -e . python -c 'print([x.name for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())])'
# spack python -c 'print([x.name for x in spack.store.STORE.db.query_local() if not any(x.satisfies(y) for y in spack.environment.active_environment().all_specs_generator())])'

0 comments on commit 57e59a3

Please sign in to comment.