]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: Don't sync if the packaging specs repo is dirty
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Oct 2024 08:50:59 +0000 (10:50 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 2 Oct 2024 09:29:34 +0000 (11:29 +0200)
mkosi.images/build/mkosi.sync

index 02d66e993910c93409a74b3252a5b63fdef3c901..eeaa73e98f0d301f68d1c450b40816c14d2dab2c 100755 (executable)
@@ -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"