[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [rbm/master] fixup! Bug 24361: use Path::Tiny instead of File::Slurp
commit 5c89374df7957238a9565c0b938ee3f30f880438
Author: Georg Koppen <gk@xxxxxxxxxxxxxx>
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') {
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits