[tbb-commits] [builders/tor-browser-build] branch main updated: Bug 40656: Make sign-nightly check for builds from the last 5 days
gitolite role
git at cupani.torproject.org
Fri Oct 21 13:23:30 UTC 2022
This is an automated email from the git hooks/post-receive script.
boklm pushed a commit to branch main
in repository builders/tor-browser-build.
The following commit(s) were added to refs/heads/main by this push:
new edb3024f Bug 40656: Make sign-nightly check for builds from the last 5 days
edb3024f is described below
commit edb3024faf38b100a7a63792a67316a0f454b79d
Author: Nicolas Vigier <boklm at torproject.org>
AuthorDate: Fri Oct 21 10:47:40 2022 +0200
Bug 40656: Make sign-nightly check for builds from the last 5 days
---
tools/signing/nightly/sign-nightly | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/tools/signing/nightly/sign-nightly b/tools/signing/nightly/sign-nightly
index a633313c..06426ed3 100755
--- a/tools/signing/nightly/sign-nightly
+++ b/tools/signing/nightly/sign-nightly
@@ -85,9 +85,12 @@ sub basedir_path {
sub get_last_build_version {
my ($config, $publish_dir) = @_;
my $today = 'tbb-nightly.' . DateTime->now->ymd('.');
- my $dt_yesterday = DateTime->now - DateTime::Duration->new(days => 1);
- my $yesterday = 'tbb-nightly.' . $dt_yesterday->ymd('.');
- for my $version ($today, $yesterday) {
+ my @last_days;
+ for my $i (1..5) {
+ my $dt = DateTime->now - DateTime::Duration->new(days => $i);
+ push @last_days, 'tbb-nightly.' . $dt->ymd('.');
+ }
+ for my $version ($today, @last_days) {
my $url = "$config->{builds_url}/$version/$publish_dir/sha256sums-unsigned-build.incrementals.txt";
if ($url =~ m|^/|) {
return $version if -f $url;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the tbb-commits
mailing list