From 6b819a097067bf033d302d53f4aa2bf3f93013f5 Mon Sep 17 00:00:00 2001 From: Jochen Sprickerhof Date: Thu, 7 Sep 2023 16:27:54 +0200 Subject: [PATCH] chown fdroiddata directory for the build For the CI builds fdroiddata lies outside of $home_vagrant in /builds/$GITLAB_USER/fdroiddata, so the files where still owned by root. This breaks $fdroid publish, running as user vagrant, when using git_repo.is_dirty() in common.setup_status_output() due to git safe.directory. (The actual error message is error: unknown option cached). Note that this only triggers when build-contains-signatures.py succeeds. --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9c65aaa20b..23aa3fcd5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -379,7 +379,7 @@ fdroid build: - for build in $APPS; do set -x; apt-get install sudo; - chown -R vagrant $home_vagrant; + chown -R vagrant $home_vagrant "$PWD"; $fdroid fetchsrclibs $build --verbose; $fdroid build --verbose --test --scan-binary --on-server --no-tarball $build; rm -rf "build/${build%:*}" || true;