From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8EBB71395E2 for ; Sat, 26 Nov 2016 23:17:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DFEF3E08D5; Sat, 26 Nov 2016 23:17:35 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C4FCDE08D5 for ; Sat, 26 Nov 2016 23:17:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA1C23412BC for ; Sat, 26 Nov 2016 23:17:34 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 431B948B for ; Sat, 26 Nov 2016 23:17:33 +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: <1480200846.15ccfc885d054d312b7d6d20ec0b91988f1b139d.vapier@gentoo> Subject: [gentoo-commits] proj/portage-utils:master commit in: / X-VCS-Repository: proj/portage-utils X-VCS-Files: main.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 15ccfc885d054d312b7d6d20ec0b91988f1b139d X-VCS-Branch: master Date: Sat, 26 Nov 2016 23:17:33 +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: 01170874-e7b8-4ac6-8406-9a76ab02acc1 X-Archives-Hash: 85734ef704823c5c3c5ddffc648e25c1 commit: 15ccfc885d054d312b7d6d20ec0b91988f1b139d Author: Mike Frysinger gentoo org> AuthorDate: Sat Nov 26 22:54:06 2016 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Sat Nov 26 22:54:06 2016 +0000 URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=15ccfc88 repos.conf: add some debug printing main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.c b/main.c index f6e5184..76e5bad 100644 --- a/main.c +++ b/main.c @@ -451,6 +451,9 @@ static void read_one_repos_conf(const char *repos_conf) const char *main_repo, *repo, *path; dictionary *dict; + if (getenv("DEBUG")) + fprintf(stderr, " parse %s\n", repos_conf); + dict = iniparser_load(repos_conf); main_repo = iniparser_getstring(dict, "DEFAULT:main-repo", NULL); @@ -482,6 +485,8 @@ static void read_repos_conf(const char *configroot, const char *repos_conf) struct dirent **confs; xasprintf(&top_conf, "%s%s", configroot, repos_conf); + if (getenv("DEBUG")) + fprintf(stderr, "repos.conf.d scanner %s\n", top_conf); count = scandir(top_conf, &confs, NULL, alphasort); if (count == -1) { if (errno == ENOTDIR)