home · contact · privacy
Fix.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 5 May 2025 22:33:13 +0000 (00:33 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 5 May 2025 22:33:13 +0000 (00:33 +0200)
bookworm/scripts/lib/ensure_packages_of_tags

index a03f4e639ffc264766612e4d9f8f022f5b8930c9..3c198f89241ea8bcfb4dd7c81708a48ab40f75b6 100644 (file)
@@ -13,7 +13,7 @@ for _TAG in $@; do
         printf 'checking if installed … '
         if dpkg-query -Wf '${Package}\n' | grep '^'"${_PACKAGE}"'$' > /dev/null; then
             echo 'yup, keeping!'
-            ${_INSTALL_CMD} ${_PACKAGE}
+            apt_get_digested '-q -q -o "Dpkg::Options::=--force-confnew" install' "${_PACKAGE}"
         else 
             echo 'nope, nothing to keep.'
         fi
@@ -29,7 +29,7 @@ for _TAG in $@; do
         echo 'nothing to install.'
     else
         echo "ensuring installation of: ${_PACKAGES}"
-        ${_INSTALL_CMD} ${_PACKAGES}
+        apt_get_digested '-q -q -o "Dpkg::Options::=--force-confnew" install' "${_PACKAGES}"
     fi
 done
 prefixed_msg 'finished'