commit:     cc1410da0856fea37f421d57ec2e3633918d5f7f
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 27 22:43:53 2015 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 22:43:53 2015 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=cc1410da

qcache: make missing KEYWORDS a verbose message

These only warn about ebuilds that shouldn't have them set (such as
9999 ebuilds), so making the warning a verbose one for now.

 qcache.c | 24 ++++++++++++++++++------
 1 file changed, 18 insertions(+), 6 deletions(-)

diff --git a/qcache.c b/qcache.c
index 091a510..5cac394 100644
--- a/qcache.c
+++ b/qcache.c
@@ -525,7 +525,9 @@ void qcache_imlate(qcache_data *data)
        keywords = xmalloc(sizeof(*keywords) * archlist_count);
 
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                free(keywords);
                return;
        }
@@ -559,7 +561,9 @@ void qcache_not(qcache_data *data)
        keywords = xmalloc(sizeof(*keywords) * archlist_count);
 
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                free(keywords);
                return;
        }
@@ -584,7 +588,9 @@ void qcache_all(qcache_data *data)
        keywords = xmalloc(sizeof(*keywords) * archlist_count);
 
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                free(keywords);
                return;
        }
@@ -612,7 +618,9 @@ void qcache_dropped(qcache_data *data)
        keywords = xmalloc(sizeof(*keywords) * archlist_count);
 
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                free(keywords);
                return;
        }
@@ -727,7 +735,9 @@ void qcache_stats(qcache_data *data)
 
        memset(keywords, 0, archlist_count * sizeof(*keywords));
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                return;
        }
 
@@ -774,7 +784,9 @@ void qcache_testing_only(qcache_data *data)
        keywords = xmalloc(sizeof(*keywords) * archlist_count);
 
        if (read_keywords(data->cache_data->KEYWORDS, keywords) < 0) {
-               warn("Failed to read keywords for %s%s/%s%s%s", BOLD, 
data->category, BLUE, data->ebuild, NORM);
+               if (verbose)
+                       warn("Failed to read keywords for %s%s/%s%s%s",
+                               BOLD, data->category, BLUE, data->ebuild, NORM);
                free(keywords);
                return;
        }

Reply via email to