From: Michael Tremer Date: Wed, 22 Sep 2021 15:47:03 +0000 (+0000) Subject: build: Ignore if local repository path already exists X-Git-Tag: 0.9.28~935 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e98e6bc4f93a279e9f01cba8a949d00afbdc0a4;p=pakfire.git build: Ignore if local repository path already exists Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/build.c b/src/libpakfire/build.c index 5df592b6b..ed1731f00 100644 --- a/src/libpakfire/build.c +++ b/src/libpakfire/build.c @@ -826,7 +826,7 @@ static int pakfire_build_enable_repos(struct pakfire* pakfire) { // Make sure the source directory exists r = pakfire_mkdir(path, 0); - if (r) { + if (r && errno != EEXIST) { ERROR(pakfire, "Could not create repository directory %s: %m\n", path); goto ERROR; }