use installed property to check package existence

This commit is contained in:
Gregory L. Lee 2014-03-17 16:45:11 -07:00 committed by Todd Gamblin
parent 2aa859e0cf
commit 655ab60beb

View file

@ -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: