X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scripts%2Fgen-indices.in;h=d60c8a9a7edf09d8750d3b2d8f6c696b8c8de10c;hb=a54f07e01f95b7ab702a9f08375dc8dad3394ac9;hp=cf7f93bec41c1e0a9048a061ca41dec92031dbc9;hpb=8cf1e74aa43fafaed6ccd78778e64fd7592af687;p=debbugs.git diff --git a/scripts/gen-indices.in b/scripts/gen-indices.in index cf7f93b..d60c8a9 100755 --- a/scripts/gen-indices.in +++ b/scripts/gen-indices.in @@ -62,6 +62,9 @@ Display this manual. =cut +# Use portable Storable images +$MLDBM::DumpMeth=q(portable); + my %options = (debug => 0, help => 0, @@ -202,5 +205,7 @@ if (not $options{quick}) { for my $i (@indexes) { untie %{$slow_index{$i}}; move("$indexdest/by-$i$suffix.idx.new", "$indexdest/by-$i$suffix.idx"); - system('touch','-d',"1/1/1970 + ${start_time}secs","$indexdest/by-$i$suffix.idx"); + # We do this, because old versions of touch don't support -d '@epoch' + system('touch','-d',"1/1/1970 UTC + ${start_time}secs","$indexdest/by-$i$suffix.idx"); } +