[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor-browser-build/master] Bug 33274: Use YAML::XS instead of YAML in update_responses



commit 6d4081c0a5d5f7094203c208df5e633f9dada54c
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date:   Sun Jan 24 22:04:05 2021 +0100

    Bug 33274: Use YAML::XS instead of YAML in update_responses
---
 tools/update-responses/README.md        | 8 ++++----
 tools/update-responses/update_responses | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/tools/update-responses/README.md b/tools/update-responses/README.md
index 5209ed5..8326983 100644
--- a/tools/update-responses/README.md
+++ b/tools/update-responses/README.md
@@ -12,14 +12,14 @@ Dependencies
 ------------
 
 The following perl modules need to be installed to run the script:
-  FindBin YAML File::Slurp Digest::SHA XML::Writer File::Temp
+  FindBin YAML::XS File::Slurp Digest::SHA XML::Writer File::Temp
   IO::CaptureOutput Parallel::ForkManager XML::LibXML LWP JSON
 
 On Debian / Ubuntu you can install them with:
 
 ```
-  # apt-get install libfindbin-libs-perl libyaml-perl libfile-slurp-perl \
-                    libdigest-sha-perl libxml-writer-perl \
+  # apt-get install libfindbin-libs-perl libyaml-libyaml-perl \
+                    libfile-slurp-perl libdigest-sha-perl libxml-writer-perl \
                     libio-captureoutput-perl libparallel-forkmanager-perl \
                     libxml-libxml-perl libwww-perl libjson-perl
 ```
@@ -27,7 +27,7 @@ On Debian / Ubuntu you can install them with:
 On Red Hat / Fedora you can install them with:
 
 ```
-  # for module in FindBin YAML File::Slurp Digest::SHA XML::Writer \
+  # for module in FindBin YAML::XS File::Slurp Digest::SHA XML::Writer \
                   File::Temp IO::CaptureOutput Parallel::ForkManager \
                   XML::LibXML LWP JSON
     do yum install "perl($module)"; done
diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index de24235..35b971f 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -4,7 +4,7 @@ use strict;
 use feature "state";
 use English;
 use FindBin;
-use YAML qw(LoadFile);
+use YAML::XS qw(LoadFile);
 use File::Slurp;
 use File::Path qw(make_path);
 use Digest::SHA qw(sha256_hex);



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits