summaryrefslogtreecommitdiffstats
path: root/layman/db.py
diff options
context:
space:
mode:
authordol-sen <brian.dolbec@gmail.com>2011-05-05 02:43:11 -0700
committerdol-sen <brian.dolbec@gmail.com>2011-05-05 02:43:11 -0700
commite15707648c5024274bd91b9348dad8cc85b0a497 (patch)
tree73b39b394c3dc1b1a93f0ceeb2cb883de903a55b /layman/db.py
parente55554e5b5c6a9c95bb8ad56aab195df1fb35817 (diff)
downloadlayman-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.py8
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()