[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [OSSTEST PATCH 3/4] backports snapshot: Disable apt timestamp checking (sometimes)
In jessie and earlier, this has to be done with a global option. In later releases, it can be done by putting some options in [ ] in the relevant sources list entry. Signed-off-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> --- Osstest/Debian.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Osstest/Debian.pm b/Osstest/Debian.pm index 5e74e86e..c1e75020 100644 --- a/Osstest/Debian.pm +++ b/Osstest/Debian.pm @@ -951,6 +951,19 @@ sub preseed_backports_packages ($$$$@) { my $apt_insert=''; my $extra_rune=''; + if ($suite =~ m/wheezy|jessie/) { + # this has global effect, unfortunately + $extra_rune = <<END; +d=/etc/apt/apt.conf.d +mkdir -p \$d +cat >\$d/50osstestsnapshot <<EOF +Acquire::Check-Valid-Until false; +EOF +END + } else { + $apt_insert = '[check-valid-until=no]'; + } + preseed_hook_command($ho, 'late_command', $sfx, <<END); #!/bin/sh set -ex -- 2.11.0 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |