From 18e34ab6a603e860487a332ac532400b8ca6d301 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Thu, 15 Jun 2017 17:59:30 +0200 Subject: [PATCH] TT#17650 Switch to use YAML::XS instead of YAML This module is more compliant and it is faster than the pure perl implementation. The latter is also deprecated in favor of the former (see man YAML for more details). Change-Id: I3fccca4ab57ad7c316b6cf58a81bc4baa1bdabe1 --- debian/control | 4 ++-- helper/sync-db | 2 +- helper/tt2-daemon | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/debian/control b/debian/control index 8faa35ae..3481705f 100644 --- a/debian/control +++ b/debian/control @@ -22,7 +22,7 @@ Build-Depends: asciidoc, libsocket-perl, libsys-hostname-long-perl, libtemplate-perl, - libyaml-perl, + libyaml-libyaml-perl, libyaml-tiny-perl, netcat, python3-pytest, @@ -51,7 +51,7 @@ Depends: etckeeper, libsocket-perl, libsys-hostname-long-perl, libtemplate-perl, - libyaml-perl, + libyaml-libyaml-perl, libyaml-tiny-perl, netcat | netcat-traditional, ngcp-system-tools, diff --git a/helper/sync-db b/helper/sync-db index 8c1854b7..5fc559bd 100755 --- a/helper/sync-db +++ b/helper/sync-db @@ -5,7 +5,7 @@ use strict; use warnings; use English; -use YAML qw/LoadFile/; +use YAML::XS qw(LoadFile); use Template; use Hash::Merge qw(merge); use DBI; diff --git a/helper/tt2-daemon b/helper/tt2-daemon index d2e975c1..19e76152 100755 --- a/helper/tt2-daemon +++ b/helper/tt2-daemon @@ -7,7 +7,7 @@ use POSIX qw( setsid ); use IO::Socket; use Hash::Merge qw(merge); use Template; -use YAML qw/LoadFile/; +use YAML::XS qw(LoadFile); use Clone 'clone'; use Getopt::Long;