summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/spack/spack/package.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py
index f949f2ef57..27b7b8aef5 100644
--- a/lib/spack/spack/package.py
+++ b/lib/spack/spack/package.py
@@ -764,7 +764,7 @@ class Package(object):
def do_uninstall(self):
- if not os.path.exists(self.prefix):
+ if not self.installed:
tty.die(self.name + " is not installed.")
if not self.ignore_dependencies: