1 |
commit: e15707648c5024274bd91b9348dad8cc85b0a497 |
2 |
Author: dol-sen <brian.dolbec <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu May 5 09:43:11 2011 +0000 |
4 |
Commit: Brian Dolbec <brian.dolbec <AT> gmail <DOT> com> |
5 |
CommitDate: Thu May 5 09:43:11 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/layman.git;a=commit;h=e1570764 |
7 |
|
8 |
quiet the "Fetching" output for locally defined overlays. |
9 |
|
10 |
--- |
11 |
layman/db.py | 8 ++++++-- |
12 |
1 files changed, 6 insertions(+), 2 deletions(-) |
13 |
|
14 |
diff --git a/layman/db.py b/layman/db.py |
15 |
index 1cf637d..b152814 100644 |
16 |
--- a/layman/db.py |
17 |
+++ b/layman/db.py |
18 |
@@ -323,8 +323,12 @@ class RemoteDB(DbBase): |
19 |
self.output.warn('Failed to update the overlay list from: ' |
20 |
+ url + '\nError was:\n' + str(error)) |
21 |
else: |
22 |
- self.output.info('Fetching new list... %s' % url, 4) |
23 |
- self.output.info('Last-modified: %s' % timestamp, 4) |
24 |
+ if url.startswith('file://'): |
25 |
+ quieter = 1 |
26 |
+ else: |
27 |
+ quieter = 0 |
28 |
+ self.output.info('Fetching new list... %s' % url, 4 + quieter) |
29 |
+ self.output.info('Last-modified: %s' % timestamp, 4 + quieter) |
30 |
# Fetch the remote list |
31 |
olist = connection.read() |