diff options
author | Erich Eckner <git@eckner.net> | 2022-03-31 12:48:53 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2022-03-31 12:48:53 +0200 |
commit | ec50c85398d43b720085b14ff07320c5f271c4ea (patch) | |
tree | 0de740d1ee19e28c419451ab34fbaf7c809f428a | |
parent | 30225710461548249dc9f80e169f4a2235dc0cac (diff) | |
download | seed-pacman-cache-ec50c85398d43b720085b14ff07320c5f271c4ea.tar.xz |
seed-pacman-cache: try to download packages, even if new dependencies cannot be matched
-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} |