1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 17:19:20 +00:00

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 <nitin.a.kamble@intel.com>
This commit is contained in:
Nitin A Kamble
2010-07-15 08:03:17 -07:00
committed by Richard Purdie
parent a30162bac9
commit 6915c7e8be
+1 -1
View File
@@ -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: