From 655ab60beb4bc1960733d19766317f6a878256d7 Mon Sep 17 00:00:00 2001 From: "Gregory L. Lee" Date: Mon, 17 Mar 2014 16:45:11 -0700 Subject: [PATCH] use installed property to check package existence --- lib/spack/spack/package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ def install(self, spec, prefix): 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: