summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory L. Lee <lee218@llnl.gov>2014-03-17 16:45:11 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2014-04-14 15:22:03 -0700
commit655ab60beb4bc1960733d19766317f6a878256d7 (patch)
treecd20d215fd7245c7c6afe790dd53b0911c574fed
parent2aa859e0cf8348eb6602ae2a267852596b194d61 (diff)
downloadspack-655ab60beb4bc1960733d19766317f6a878256d7.tar.gz
spack-655ab60beb4bc1960733d19766317f6a878256d7.tar.bz2
spack-655ab60beb4bc1960733d19766317f6a878256d7.tar.xz
spack-655ab60beb4bc1960733d19766317f6a878256d7.zip
use installed property to check package existence
-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: