add comment about touching

This commit is contained in:
ander 2021-11-01 23:10:49 +02:00
parent e7d8fb874d
commit 4ddbf1e411
No known key found for this signature in database
GPG Key ID: 0A2971E562D618F3
1 changed files with 1 additions and 0 deletions

View File

@ -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