Adding --reuse to dev-build command. (#27487)
This commit is contained in:
parent
4d059ead8c
commit
3375db12a5
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
|
|
||||||
def setup_parser(subparser):
|
def setup_parser(subparser):
|
||||||
arguments.add_common_arguments(subparser, ['jobs'])
|
arguments.add_common_arguments(subparser, ['jobs', 'reuse'])
|
||||||
subparser.add_argument(
|
subparser.add_argument(
|
||||||
'-d', '--source-path', dest='source_path', default=None,
|
'-d', '--source-path', dest='source_path', default=None,
|
||||||
help="path to source directory. defaults to the current directory")
|
help="path to source directory. defaults to the current directory")
|
||||||
@ -86,7 +86,7 @@ def dev_build(self, args):
|
|||||||
# Forces the build to run out of the source directory.
|
# Forces the build to run out of the source directory.
|
||||||
spec.constrain('dev_path=%s' % source_path)
|
spec.constrain('dev_path=%s' % source_path)
|
||||||
|
|
||||||
spec.concretize()
|
spec.concretize(reuse=args.reuse)
|
||||||
package = spack.repo.get(spec)
|
package = spack.repo.get(spec)
|
||||||
|
|
||||||
if package.installed:
|
if package.installed:
|
||||||
|
@ -866,7 +866,7 @@ _spack_deprecate() {
|
|||||||
_spack_dev_build() {
|
_spack_dev_build() {
|
||||||
if $list_options
|
if $list_options
|
||||||
then
|
then
|
||||||
SPACK_COMPREPLY="-h --help -j --jobs -d --source-path -i --ignore-dependencies -n --no-checksum --deprecated --keep-prefix --skip-patch -q --quiet --drop-in --test -b --before -u --until --clean --dirty"
|
SPACK_COMPREPLY="-h --help -j --jobs --reuse -d --source-path -i --ignore-dependencies -n --no-checksum --deprecated --keep-prefix --skip-patch -q --quiet --drop-in --test -b --before -u --until --clean --dirty"
|
||||||
else
|
else
|
||||||
_all_packages
|
_all_packages
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user