commit: 15ccfc885d054d312b7d6d20ec0b91988f1b139d
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 26 22:54:06 2016 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> 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)