From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 434221384B4 for ; Thu, 26 Nov 2015 10:39:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9FED321C105; Thu, 26 Nov 2015 10:39:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C47A221C104 for ; Thu, 26 Nov 2015 10:39:28 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id AB1DF34073B for ; Thu, 26 Nov 2015 10:39:27 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8EF5AABD for ; Thu, 26 Nov 2015 10:39:24 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1448531032.7c3b484d601e6c06cfc692bbf011fca338697725.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: quse.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 7c3b484d601e6c06cfc692bbf011fca338697725 X-VCS-Branch: master Date: Thu, 26 Nov 2015 10:39:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5ddc04c1-9e03-4d49-81d2-edacd5f1b695 X-Archives-Hash: 938669b58ba51ced41f202df5fb07603 commit: 7c3b484d601e6c06cfc692bbf011fca338697725 Author: Mike Frysinger gentoo org> AuthorDate: Thu Nov 26 09:43:52 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Thu Nov 26 09:43:52 2015 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=7c3b484d quse: move file warnings behind verbose Usually missing desc files are not errors but normal behavior: people have trimmed the files or are using repos w/out them. Move the warnings related to them behind --verbose so we don't clutter up normal output. quse.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/quse.c b/quse.c index 049b6e9..c7c1863 100644 --- a/quse.c +++ b/quse.c @@ -97,8 +97,9 @@ quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) for (i = 0; i < NUM_SEARCH_FILES; ++i) { snprintf(buf, buflen, "%s/profiles/%s", portdir, search_files[i]); - if ((fp[i] = fopen(buf, "r")) == NULL) - warnp("skipping %s", search_files[i]); + fp[i] = fopen(buf, "r"); + if (verbose && fp[i] == NULL) + warnp("skipping %s", buf); } for (i = ind; i < argc; i++) { @@ -157,7 +158,8 @@ quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) /* now scan the desc dir */ snprintf(buf, buflen, "%s/profiles/desc/", portdir); if ((d = opendir(buf)) == NULL) { - warnp("skipping profiles/desc/"); + if (verbose) + warnp("skipping %s", buf); goto done; } @@ -171,7 +173,8 @@ quse_describe_flag(unsigned int ind, unsigned int argc, char **argv) snprintf(buf, buflen, "%s/profiles/desc/%s", portdir, de->d_name); if ((fp[0] = fopen(buf, "r")) == NULL) { - warn("Could not open '%s' for reading; skipping", de->d_name); + if (verbose) + warnp("skipping %s", buf); continue; }