Merge pull request #34616 from DaanDeMeyer/mkosi

Various mkosi fixes
This commit is contained in:
Daan De Meyer
2024-10-02 13:44:12 +02:00
committed by GitHub
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -21,6 +21,7 @@ PassEnvironment=
MESON_OPTIONS
SYSEXT
WITH_DEBUG
ASAN_OPTIONS
[Output]
RepartDirectories=mkosi.repart
@@ -85,7 +86,6 @@ Packages=
attr
bash-completion
binutils
bpftrace
coreutils
curl
diffutils
+4
View File
@@ -12,6 +12,10 @@ if [[ -d "pkg/$PKG_SUBDIR/.git" ]]; then
exit 0
fi
if [[ -n "$(git -C "pkg/$PKG_SUBDIR" status --porcelain)" ]]; then
exit 0
fi
if ! git -C "pkg/$PKG_SUBDIR" show-ref --quiet "origin/$GIT_BRANCH"; then
git -C "pkg/$PKG_SUBDIR" remote set-url origin "$GIT_URL"
git -C "pkg/$PKG_SUBDIR" fetch origin "$GIT_BRANCH"