From d0a07bc42a8d492c9e3e106a427170c9382186f2 Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Sun, 24 Dec 2023 21:45:51 +0100
Subject: [PATCH] .gitlab-ci.yml: run reprepro as 'build' user so that a
 potential 'reprepro removesrc' later does not fail

---
 .gitlab-ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2c70959..97c9900 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -95,7 +95,7 @@ build_patched:
             curl --silent --location "$CI_PROJECT_URL/-/jobs/artifacts/main/raw/changes/${f}?job=build_patched" > "changes/${f}"
           done
           echo "including ${p}_${variant}.changes" >&2
-          reprepro --basedir ./repo include "reform" "changes/${p}_${variant}.changes"
+          runuser -u build -- reprepro --basedir ./repo include "reform" "changes/${p}_${variant}.changes"
         done
       fi
     done
-- 
GitLab