From 31ba37c0a44f152005fbb8ab49c05462fb741fd6 Mon Sep 17 00:00:00 2001 From: Lars Hjemli Date: Sun, 28 Feb 2010 18:40:02 +0100 Subject: scan-tree: add test for noweb-file in repo dir If such a file exists, the repo is not added to the repolist. Signed-off-by: Lars Hjemli --- scan-tree.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scan-tree.c') diff --git a/scan-tree.c b/scan-tree.c index dbca797..1e18f3c 100644 --- a/scan-tree.c +++ b/scan-tree.c @@ -56,6 +56,8 @@ static void add_repo(const char *base, const char *path, repo_config_fn fn) path, strerror(errno), errno); return; } + if (!stat(fmt("%s/noweb", path), &st)) + return; if ((pwd = getpwuid(st.st_uid)) == NULL) { fprintf(stderr, "Error reading owner-info for %s: %s (%d)\n", path, strerror(errno), errno); -- cgit v1.2.1