Skip to content

Commit

Permalink
pacman: enable debug mode
Browse files Browse the repository at this point in the history
In my local testing, I didn't run into hangs anymore when pacman runs in debug mode. Maybe because it just outputs so many lines? Let's try if it works in CI as well

Signed-off-by: Dennis Ameling <dennis@dennisameling.com>
  • Loading branch information
dennisameling authored and dscho committed May 22, 2024
1 parent 36b089f commit 5afd776
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions update-via-pacman.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ if (!(Test-Path var\log -PathType Container)) {
}

echo "Run Pacman (First Pass)"
bash -lc "pacman -Syyu --overwrite=\* --noconfirm"
bash -lc "pacman --debug -Syyu --overwrite=\* --noconfirm"
if (!$?) { exit 1 }

# Ensure that the Git for Windows keyring is registered
Expand Down Expand Up @@ -68,7 +68,7 @@ if ($type -Match "full system upgrade") {
echo "No second pass needed"
} else {
echo "Run Pacman again (Second Pass) to upgrade the remaining (non-core) packages"
bash -lc "pacman -Su --overwrite=\* --noconfirm"
bash -lc "pacman --debug -Su --overwrite=\* --noconfirm"
if (!$?) { exit 1 }

# Ensure that the Git for Windows keyring is registered
Expand Down Expand Up @@ -143,4 +143,4 @@ if ($pacnew.Length -gt 0) {
}

# Wrapping up: re-install mingw-w64-git-extra
bash -lc "pacman -S --overwrite=\* --noconfirm mingw-w64-clang-aarch64-git-extra"
bash -lc "pacman --debug -S --overwrite=\* --noconfirm mingw-w64-clang-aarch64-git-extra"

0 comments on commit 5afd776

Please sign in to comment.