diff options
author | Gregory L. Lee <lee218@llnl.gov> | 2014-03-17 16:45:11 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2014-04-14 15:22:03 -0700 |
commit | 655ab60beb4bc1960733d19766317f6a878256d7 (patch) | |
tree | cd20d215fd7245c7c6afe790dd53b0911c574fed /lib | |
parent | 2aa859e0cf8348eb6602ae2a267852596b194d61 (diff) | |
download | spack-655ab60beb4bc1960733d19766317f6a878256d7.tar.gz spack-655ab60beb4bc1960733d19766317f6a878256d7.tar.bz2 spack-655ab60beb4bc1960733d19766317f6a878256d7.tar.xz spack-655ab60beb4bc1960733d19766317f6a878256d7.zip |
use installed property to check package existence
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/package.py | 2 |
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: |