diff options
author | dol-sen <brian.dolbec@gmail.com> | 2011-05-05 02:43:11 -0700 |
---|---|---|
committer | dol-sen <brian.dolbec@gmail.com> | 2011-05-05 02:43:11 -0700 |
commit | e15707648c5024274bd91b9348dad8cc85b0a497 (patch) | |
tree | 73b39b394c3dc1b1a93f0ceeb2cb883de903a55b /layman/db.py | |
parent | e55554e5b5c6a9c95bb8ad56aab195df1fb35817 (diff) | |
download | layman-e15707648c5024274bd91b9348dad8cc85b0a497.tar.gz layman-e15707648c5024274bd91b9348dad8cc85b0a497.tar.bz2 layman-e15707648c5024274bd91b9348dad8cc85b0a497.zip |
quiet the "Fetching" output for locally defined overlays.
Diffstat (limited to 'layman/db.py')
-rw-r--r-- | layman/db.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/layman/db.py b/layman/db.py index 1cf637d..b152814 100644 --- a/layman/db.py +++ b/layman/db.py @@ -323,8 +323,12 @@ class RemoteDB(DbBase): self.output.warn('Failed to update the overlay list from: ' + url + '\nError was:\n' + str(error)) else: - self.output.info('Fetching new list... %s' % url, 4) - self.output.info('Last-modified: %s' % timestamp, 4) + if url.startswith('file://'): + quieter = 1 + else: + quieter = 0 + self.output.info('Fetching new list... %s' % url, 4 + quieter) + self.output.info('Last-modified: %s' % timestamp, 4 + quieter) # Fetch the remote list olist = connection.read() |