diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-07-20 11:27:12 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-07-20 11:27:12 -0700 |
commit | 2a3d535c9a6ec6680832ce2bc249f9bc80b67864 (patch) | |
tree | 2979fa13cb26017ba6e5c3be236bbed62af0ebe4 | |
parent | change raising an exceptio to outputing the error. (diff) | |
download | layman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.tar.gz layman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.tar.bz2 layman-2a3d535c9a6ec6680832ce2bc249f9bc80b67864.zip |
fix --list --verbose functionality, bug 375779
-rw-r--r-- | layman/db.py | 2 | ||||
-rw-r--r-- | layman/dbbase.py | 4 |
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())) |