summaryrefslogtreecommitdiff
path: root/seed-pacman-cache.in
diff options
context:
space:
mode:
Diffstat (limited to 'seed-pacman-cache.in')
-rwxr-xr-xseed-pacman-cache.in10
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}