[tbb-commits] [rbm/master] fixup! Bug 24361: use Path::Tiny instead of File::Slurp

gk at torproject.org gk at torproject.org
Mon Nov 27 11:42:02 UTC 2017


commit 5c89374df7957238a9565c0b938ee3f30f880438
Author: Georg Koppen <gk at torproject.org>
Date:   Mon Nov 27 11:41:34 2017 +0000

    fixup! Bug 24361: use Path::Tiny instead of File::Slurp
---
 lib/RBM.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/RBM.pm b/lib/RBM.pm
index b2ef57f..73b7d6c 100644
--- a/lib/RBM.pm
+++ b/lib/RBM.pm
@@ -707,7 +707,7 @@ sub input_file_need_dl {
     return undef if $action eq 'getfpaths';
     if ($fname
         && $input_file->{sha256sum}
-        && $t->('sha256sum') ne sha256_hex(read_file($fname))) {
+        && $t->('sha256sum') ne sha256_hex(path($fname)->slurp_raw)) {
         $fname = undef;
     }
     if ($action eq 'input_files_id') {



More information about the tbb-commits mailing list