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.
This commit is contained in:
Jochen Sprickerhof 2023-09-07 16:27:54 +02:00 committed by Jochen Sprickerhof
parent 9f76c8d849
commit 6b819a0970

View file

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