From 148d8541f177f318bfd8c8abfbf9fa96f581ceb8 Mon Sep 17 00:00:00 2001
From: Nicolas Vigier <boklm@torproject.org>
Date: Thu, 25 Apr 2024 14:54:32 +0200
Subject: [PATCH] Bug 40076: Take refresh_input into account when computing
 input_files_id

The `refresh_input` option forces refreshing an input_file. The option
is correctly taken into account when starting a build, but was not when
computing `input_files_id`.
---
 lib/RBM.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RBM.pm b/lib/RBM.pm
index a8ec294..614d504 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -796,7 +796,7 @@ sub input_file_need_dl {
             return undef;
         }
         return undef if $input_file->{exec};
-        return undef if $fname;
+        return undef if ($fname && !$t->('refresh_input'));
         return 1 if $input_file->{URL};
         return 1 if $input_file->{content};
         return undef;
-- 
GitLab