1 |
commit: cc1410da0856fea37f421d57ec2e3633918d5f7f |
2 |
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 27 22:43:53 2015 +0000 |
4 |
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 27 22:43:53 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=cc1410da |
7 |
|
8 |
qcache: make missing KEYWORDS a verbose message |
9 |
|
10 |
These only warn about ebuilds that shouldn't have them set (such as |
11 |
9999 ebuilds), so making the warning a verbose one for now. |
12 |
|
13 |
qcache.c | 24 ++++++++++++++++++------ |
14 |
1 file changed, 18 insertions(+), 6 deletions(-) |
15 |
|
16 |
diff --git a/qcache.c b/qcache.c |
17 |
index 091a510..5cac394 100644 |
18 |
--- a/qcache.c |
19 |
+++ b/qcache.c |
20 |
@@ -525,7 +525,9 @@ void qcache_imlate(qcache_data *data) |
21 |
keywords = xmalloc(sizeof(*keywords) * archlist_count); |
22 |
|
23 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
24 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
25 |
+ if (verbose) |
26 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
27 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
28 |
free(keywords); |
29 |
return; |
30 |
} |
31 |
@@ -559,7 +561,9 @@ void qcache_not(qcache_data *data) |
32 |
keywords = xmalloc(sizeof(*keywords) * archlist_count); |
33 |
|
34 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
35 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
36 |
+ if (verbose) |
37 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
38 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
39 |
free(keywords); |
40 |
return; |
41 |
} |
42 |
@@ -584,7 +588,9 @@ void qcache_all(qcache_data *data) |
43 |
keywords = xmalloc(sizeof(*keywords) * archlist_count); |
44 |
|
45 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
46 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
47 |
+ if (verbose) |
48 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
49 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
50 |
free(keywords); |
51 |
return; |
52 |
} |
53 |
@@ -612,7 +618,9 @@ void qcache_dropped(qcache_data *data) |
54 |
keywords = xmalloc(sizeof(*keywords) * archlist_count); |
55 |
|
56 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
57 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
58 |
+ if (verbose) |
59 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
60 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
61 |
free(keywords); |
62 |
return; |
63 |
} |
64 |
@@ -727,7 +735,9 @@ void qcache_stats(qcache_data *data) |
65 |
|
66 |
memset(keywords, 0, archlist_count * sizeof(*keywords)); |
67 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
68 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
69 |
+ if (verbose) |
70 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
71 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
72 |
return; |
73 |
} |
74 |
|
75 |
@@ -774,7 +784,9 @@ void qcache_testing_only(qcache_data *data) |
76 |
keywords = xmalloc(sizeof(*keywords) * archlist_count); |
77 |
|
78 |
if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) { |
79 |
- warn("Failed to read keywords for %s%s/%s%s%s", BOLD, data->category, BLUE, data->ebuild, NORM); |
80 |
+ if (verbose) |
81 |
+ warn("Failed to read keywords for %s%s/%s%s%s", |
82 |
+ BOLD, data->category, BLUE, data->ebuild, NORM); |
83 |
free(keywords); |
84 |
return; |
85 |
} |