summaryrefslogtreecommitdiffstats
path: root/meta/classes/cpan-base.bbclass
diff options
context:
space:
mode:
authorNitin A Kamble <nitin.a.kamble@intel.com>2010-07-15 08:03:17 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2010-07-16 16:38:12 +0100
commit6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9 (patch)
treece7710a345c90d4b4fd13888d5a56db9b230b64b /meta/classes/cpan-base.bbclass
parenta30162bac97f0002181dd584d612744b64fddf21 (diff)
downloadpoky-6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9.tar.gz
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>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r--meta/classes/cpan-base.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass
index c90a8fbc27..3175248048 100644
--- a/meta/classes/cpan-base.bbclass
+++ b/meta/classes/cpan-base.bbclass
@@ -17,7 +17,7 @@ def get_perl_version(d):
17 return None 17 return None
18 l = f.readlines(); 18 l = f.readlines();
19 f.close(); 19 f.close();
20 r = re.compile("version='(\d\.\d\.\d)'") 20 r = re.compile("^version='(\d*\.\d*\.\d*)'")
21 for s in l: 21 for s in l:
22 m = r.match(s) 22 m = r.match(s)
23 if m: 23 if m: