]> gitweb.fluxo.info Git - metadot.git/commitdiff
Fix: avoid dependency installation errors when there are missing package candidates
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 6 Jun 2025 17:24:27 +0000 (14:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 6 Jun 2025 17:24:27 +0000 (14:24 -0300)
metadot

diff --git a/metadot b/metadot
index de18148f70dd48ff7e8bc4e2fae7adb081ac99f4..85cc000de06d7e84728197d2cd763c32e29da593 100755 (executable)
--- a/metadot
+++ b/metadot
@@ -124,7 +124,13 @@ function metadot_deps {
       done
 
       if [ ! -z "$deps_to_install" ]; then
-        LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install
+        # This generates less output, but might fail entirely if at least one
+        # package has no candidates for installation.
+        #LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $deps_to_install
+
+        for $dep in $deps_to_install; do
+          LC_ALL=C DEBIAN_FRONTEND=noninteractive sudo apt-get install -y $dep
+        done
       fi
     fi