1
0
Fork 0

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 <hjemli@gmail.com>
Dieser Commit ist enthalten in:
Lars Hjemli 2010-02-28 18:40:02 +01:00
Ursprung c151ce61d8
Commit 31ba37c0a4
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen

Datei anzeigen

@ -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);