From 6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Thu, 15 Jul 2010 08:03:17 -0700 Subject: cpan-base.bbclass: fix perl version finding function Now perl version is in two digits like 12 in 5.12.1. Fix the old function to work with multi digit version strings. Signed-off-by: Nitin A Kamble --- meta/classes/cpan-base.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass index c90a8fbc2..317524804 100644 --- a/meta/classes/cpan-base.bbclass +++ b/meta/classes/cpan-base.bbclass @@ -17,7 +17,7 @@ def get_perl_version(d): return None l = f.readlines(); f.close(); - r = re.compile("version='(\d\.\d\.\d)'") + r = re.compile("^version='(\d*\.\d*\.\d*)'") for s in l: m = r.match(s) if m: -- cgit v1.2.3