[Libguestfs] [p2v PATCH] Use List::MoreUtils instead of List::Util

Pino Toscano ptoscano at redhat.com
Wed Jul 10 15:24:41 UTC 2019


List::Util has "any" only from version 1.33, which older distros (like
RHEL/CentOS 7/6) do not have.  Instead use List::MoreUtils, which is
available, and provides the same functionality.
---
 generate-p2v-config.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/generate-p2v-config.pl b/generate-p2v-config.pl
index 01387e0..be98838 100755
--- a/generate-p2v-config.pl
+++ b/generate-p2v-config.pl
@@ -20,7 +20,7 @@ use warnings;
 
 use Class::Struct;
 use Getopt::Long;
-use List::Util qw(any);
+use List::MoreUtils qw(any);
 
 struct ConfigSection =>
 {
-- 
2.21.0




More information about the Libguestfs mailing list