From 19d5db2caed7ab7420e9871460eb79e43c1bd8f4 Mon Sep 17 00:00:00 2001 From: andrewjpage Date: Fri, 12 Jan 2018 08:45:35 +0000 Subject: [PATCH] check prank without going online --- dist.ini | 2 +- lib/Bio/Roary/External/CheckTools.pm | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/dist.ini b/dist.ini index 89fd767..1839c8f 100644 --- a/dist.ini +++ b/dist.ini @@ -3,7 +3,7 @@ author = Andrew J. Page license = GPL_3 copyright_holder = Wellcome Trust Sanger Institute copyright_year = 2013 -version = 3.11.2 +version = 3.11.3 main_module = lib/Bio/Roary.pm [MetaResources] diff --git a/lib/Bio/Roary/External/CheckTools.pm b/lib/Bio/Roary/External/CheckTools.pm index a580181..220b497 100644 --- a/lib/Bio/Roary/External/CheckTools.pm +++ b/lib/Bio/Roary/External/CheckTools.pm @@ -76,9 +76,11 @@ my %tools = ( MINVER => "3", NEEDED => 0, }, - - # prank version also performs an update check so cant use it - 'prank' => { NEEDED => 0 }, + 'prank' => { + GETVER => "prank | grep -m 1 ^prank", + REGEXP => qr/prank v.(\d+)/, + NEEDED => 0, + }, # now just the standard unix tools we need 'grep' => { NEEDED => 1 },