diff options
-rwxr-xr-x | seed-pacman-cache.in | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/seed-pacman-cache.in b/seed-pacman-cache.in index aa997ad..8b09bb9 100755 --- a/seed-pacman-cache.in +++ b/seed-pacman-cache.in @@ -1,3 +1,13 @@ #!/bin/bash chronic pacman -Syuwq --noconfirm +err=$? +if [ ${err} -ne 0 ]; then + pacman -Syuwq --noconfirm $( + pacman -Q \ + | awk '{ + print "--assume-installed=" $1 "=" $2 + }' + ) +fi +exit ${err} |