Skip to content

Commit

Permalink
wayback
Browse files Browse the repository at this point in the history
  • Loading branch information
crpb committed Jan 8, 2025
1 parent f5d0251 commit 8236f9e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions config/hooks/updatebase.GRMLBASE
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@ fcopy -M -i -B -v -r /etc/apt
if [ -n "${WAYBACK_DATE:-}" ] ; then
echo "Wayback date '$WAYBACK_DATE' identified, enabling for snapshot.debian.org usage."

perl -pi -e "s#^(\s+)(deb.* )(.*://deb.debian.org.*?)\s+([a-z-]+)\s+(.*)\$#\$1\$2 [check-valid-until=no] http://snapshot.debian.org/archive/debian/$WAYBACK_DATE/ \$4 \$5#" \
"${target}/etc/apt/sources.list.d/debian.list"
perl -pi -e 'BEGIN { $d="'"$WAYBACK_DATE"'"; } \
s#^(URIs:)\s+(.*://deb.debian.org.*?)$#$1 http://snapshot.debian.org/archive/debian/$d/#' \

perl -pi -e "s#^(\s+)(deb.* )(.*://security.debian.org.*?)\s+([a-z-/]+)\s+(.*)\$#\$1\$2 [check-valid-until=no] http://snapshot.debian.org/archive/debian-security/$WAYBACK_DATE/ \$4 \$5#" \
"${target}/etc/apt/sources.list.d/debian.list"
sed -i "/^Suites/a Check-Valid-Unit: no" "${target}/etc/apt/sources.list.d/debian.sources"
fi

## END OF FILE #################################################################
Expand Down

0 comments on commit 8236f9e

Please sign in to comment.