use installed property to check package existence
This commit is contained in:
parent
2aa859e0cf
commit
655ab60beb
1 changed files with 1 additions and 1 deletions
|
@ -764,7 +764,7 @@ def install(self, spec, prefix):
|
||||||
|
|
||||||
|
|
||||||
def do_uninstall(self):
|
def do_uninstall(self):
|
||||||
if not os.path.exists(self.prefix):
|
if not self.installed:
|
||||||
tty.die(self.name + " is not installed.")
|
tty.die(self.name + " is not installed.")
|
||||||
|
|
||||||
if not self.ignore_dependencies:
|
if not self.ignore_dependencies:
|
||||||
|
|
Loading…
Reference in a new issue