summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2022-03-31 12:48:53 +0200
committerErich Eckner <git@eckner.net>2022-03-31 12:48:53 +0200
commitec50c85398d43b720085b14ff07320c5f271c4ea (patch)
tree0de740d1ee19e28c419451ab34fbaf7c809f428a
parent30225710461548249dc9f80e169f4a2235dc0cac (diff)
downloadseed-pacman-cache-ec50c85398d43b720085b14ff07320c5f271c4ea.tar.xz
seed-pacman-cache: try to download packages, even if new dependencies cannot be matched
-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}