diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-05-17 22:19:39 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-05-17 22:19:39 -0700 |
commit | c0fff99f7ae0168900eeea30dc27fc240caa9240 (patch) | |
tree | ec2187ae63396c415d7f33ad1c4005c504eceb80 /layman | |
parent | 50b971a3724c2b5637d1ce3fc6587d6e3325f2ca (diff) | |
download | layman-c0fff99f7ae0168900eeea30dc27fc240caa9240.tar.gz layman-c0fff99f7ae0168900eeea30dc27fc240caa9240.tar.bz2 layman-c0fff99f7ae0168900eeea30dc27fc240caa9240.zip |
fix the success result when adding already installed overlays
Diffstat (limited to 'layman')
-rw-r--r-- | layman/api.py | 5 |
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)) |