summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--layman/api.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/layman/api.py b/layman/api.py
index 30f850c..8e54d7d 100644
--- a/layman/api.py
+++ b/layman/api.py
@@ -111,7 +111,7 @@ class LaymanAPI(object):
results = []
for ovl in repos:
if not self.is_installed(ovl):
- self._error("Repository '"+ovl+"': was not installed")
+ self._error("Repository '"+ovl+"' was not installed")
results.append(False)
continue
try:
@@ -140,7 +140,8 @@ class LaymanAPI(object):
results = []
for ovl in repos:
if self.is_installed(ovl):
- results.append(True)
+ self._error("Repository '"+ovl+"' was already installed")
+ results.append(False)
continue
if not self.is_repo(ovl):
self._error(UnknownOverlayMessage(ovl))