summaryrefslogtreecommitdiff
path: root/meta/classes
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
parenta30162bac97f0002181dd584d612744b64fddf21 (diff)
downloadopenembedded-core-6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9.tar.gz
openembedded-core-6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9.tar.bz2
openembedded-core-6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9.tar.xz
openembedded-core-6915c7e8be80cce78b8eb6ec260d4bb77ef1adb9.zip
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')
-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 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: