summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-07-20 11:27:12 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-07-20 11:27:12 -0700
commit2a3d535c9a6ec6680832ce2bc249f9bc80b67864 (patch)
tree2979fa13cb26017ba6e5c3be236bbed62af0ebe4
parentchange raising an exceptio to outputing the error. (diff)
downloadlayman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.tar.gz
layman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.tar.bz2
layman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.zip
fix --list --verbose functionality, bug 375779
-rw-r--r--layman/db.py2
-rw-r--r--layman/dbbase.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/layman/db.py b/layman/db.py
index b1df906..747eb4b 100644
--- a/layman/db.py
+++ b/layman/db.py
@@ -391,7 +391,7 @@ class RemoteDB(DbBase):
if hint:
self.output.warn(
'You do not have permission to update the cache (%s).'
- % mpath)
+ % path)
import getpass
if getpass.getuser() != 'root':
self.output.warn('Hint: You are not root.\n')
diff --git a/layman/dbbase.py b/layman/dbbase.py
index 70d0cfa..48199a6 100644
--- a/layman/dbbase.py
+++ b/layman/dbbase.py
@@ -277,8 +277,8 @@ class DbBase:
for overlay in selection:
if verbose:
- result.append(overlay.get_infostr(), overlay.is_supported(),
- overlay.is_official())
+ result.append((overlay.get_infostr(), overlay.is_supported(),
+ overlay.is_official()))
else:
result.append((overlay.short_list(width), overlay.is_supported(),
overlay.is_official()))