From ec50c85398d43b720085b14ff07320c5f271c4ea Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 31 Mar 2022 12:48:53 +0200 Subject: seed-pacman-cache: try to download packages, even if new dependencies cannot be matched --- seed-pacman-cache.in | 10 ++++++++++ 1 file changed, 10 insertions(+) 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} -- cgit v1.2.3-70-g09d2