From 4ddbf1e4114499a37e69cee28ebb23f76670a586 Mon Sep 17 00:00:00 2001 From: Ander Punnar Date: Mon, 1 Nov 2021 23:10:49 +0200 Subject: [PATCH] add comment about touching --- cdist/conf/type/__package_apt/gencode-remote | 1 + 1 file changed, 1 insertion(+) diff --git a/cdist/conf/type/__package_apt/gencode-remote b/cdist/conf/type/__package_apt/gencode-remote index 2a86e37f..ad53c2ea 100755 --- a/cdist/conf/type/__package_apt/gencode-remote +++ b/cdist/conf/type/__package_apt/gencode-remote @@ -93,6 +93,7 @@ case "$state_should" in # https://code.ungleich.ch/ungleich-public/cdist/-/issues/861 apt_opts="-o Acquire::AllowReleaseInfoChange::Suite=true -o Acquire::AllowReleaseInfoChange::Version=true" if [ "$(cat "$__object/explorer/index")" = 'update' ]; then + # make /var/lib/apt/lists newer because apt-get update might not always do this echo 'if [ -d /var/lib/apt/lists ]; then touch /var/lib/apt/lists; fi' echo "apt-get $apt_opts update || true" fi