summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-02-18 16:21:15 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2015-02-18 16:21:15 -0800
commit2eda01c703cbd1692130ffc8ed48a9163fda87b6 (patch)
tree378e81fc5196b5bdc1af690878d1ee363d386b45
parentc7b8a4e25cde8c2f32e514fdfe5280feca42e4ea (diff)
downloadspack-2eda01c703cbd1692130ffc8ed48a9163fda87b6.tar.gz
spack-2eda01c703cbd1692130ffc8ed48a9163fda87b6.tar.bz2
spack-2eda01c703cbd1692130ffc8ed48a9163fda87b6.tar.xz
spack-2eda01c703cbd1692130ffc8ed48a9163fda87b6.zip
uninstall -f ignores nonexisting packages.
-rw-r--r--lib/spack/spack/cmd/uninstall.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/uninstall.py b/lib/spack/spack/cmd/uninstall.py
index 0962942f43..6ded455390 100644
--- a/lib/spack/spack/cmd/uninstall.py
+++ b/lib/spack/spack/cmd/uninstall.py
@@ -66,6 +66,7 @@ def uninstall(parser, args):
tty.die(*args)
if len(matching_specs) == 0:
+ if args.force: continue
tty.die("%s does not match any installed packages." % spec)
for s in matching_specs: