From e15707648c5024274bd91b9348dad8cc85b0a497 Mon Sep 17 00:00:00 2001 From: dol-sen Date: Thu, 5 May 2011 02:43:11 -0700 Subject: quiet the "Fetching" output for locally defined overlays. --- layman/db.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'layman/db.py') 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() -- cgit v1.2.3-1-g7c22