the repository which powers this website
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 <[email protected]>
Lars Hjemli 2010-03-01
parent c151ce6 · commit 31ba37c
-rw-r--r--scan-tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scan-tree.c b/scan-tree.c
index dbca7971..1e18f3c9 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);