Mirrors: add option to exclude packages from "mirror create" (#14154)
* add an --exclude-file option to 'spack mirror create' which allows a user to specify a file of specs to exclude when creating a mirror. this is anticipated to be useful especially when using the '--all' option * allow specifying number of versions when mirroring all packages * when mirroring all specs within an environment, include dependencies of root specs * add '--exclude-specs' option to allow user to specify that specs should be excluded on the command line * add test for excluding specs
Showing
- lib/spack/spack/cmd/mirror.py 39 additions, 7 deletionslib/spack/spack/cmd/mirror.py
- lib/spack/spack/environment.py 9 additions, 16 deletionslib/spack/spack/environment.py
- lib/spack/spack/test/cmd/mirror.py 50 additions, 0 deletionslib/spack/spack/test/cmd/mirror.py
- share/spack/spack-completion.bash 1 addition, 1 deletionshare/spack/spack-completion.bash
Loading
Please register or sign in to comment