fix: Flatpak setup clears a package lock left by an interrupted run

This commit is contained in:
maxjivi05 authored and MaxsTechReview committed 2026-10-26 12:47:00 -04:00
1 parent da127d1b4c
commit 2e2b950964
2 files changed
+30 -1

No files matched your search

@@ -49,6 +49,9 @@ if [ ! -f /etc/pacman.d/gnupg/pubring.gpg ] && [ ! -f /etc/pacman.d/gnupg/pubrin
fi
step "Reading the package lists"
if [ -e "$WORK/db/db.lck" ] && ! grep -qx pacman /proc/[0-9]*/comm 2>/dev/null; then
rm -f "$WORK/db/db.lck"
fi
sync_log=$(pacman --config "$CONF" --dbpath "$WORK/db" --noconfirm -Sy 2>&1) \
|| sync_log=$(pacman --config "$CONF" --dbpath "$WORK/db" --noconfirm -Sy 2>&1)
if [ ! -f "$WORK/db/sync/extra.db" ]; then