Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion config/hooks/GRMLBASE/updatebase
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ if [ -n "${WAYBACK_DATE:-}" ] ; then
s#^(URIs:)\s+(.*://deb.debian.org/)(.*)\/?$#$1 http://snapshot.debian.org/archive/$3/$d#' \
"${target}"/etc/apt/sources.list.d/debian.sources

sed -i '/^Types:/a Check-Valid-Until: no' "${target}"/etc/apt/sources.list.d/debian.sources
# config/scripts/GRMLBASE/33-aptsetup will already apply this when class
# RELEASE is enabled (default).
if ! ifclass RELEASE; then
sed -i '/^Types:/a Check-Valid-Until: no' "${target}"/etc/apt/sources.list.d/debian.sources
fi
fi

## END OF FILE #################################################################
Expand Down
3 changes: 1 addition & 2 deletions config/scripts/GRMLBASE/33-aptsetup
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ set -u
target=${target:?}

# use snapshot.debian.org based on build date for release
if ifclass RELEASE ; then
if ifclass RELEASE; then
current_date=$(date --utc -d "@${SOURCE_DATE_EPOCH}" +%Y%m%d)
perl -pi -e 'BEGIN { $d="'"$current_date"'"; } \
s#^(URIs:)\s+(.*://deb.debian.org/)(.*)\/?$#$1 http://snapshot.debian.org/archive/$3/$d#' \
"${target}"/etc/apt/sources.list.d/debian.sources

sed -i '/^Types:/a Check-Valid-Until: no' "${target}"/etc/apt/sources.list.d/debian.sources
fi

## END OF FILE #################################################################
# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2