diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-08 22:32:43 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:28 +0000 |
commit | c54117458a19d05d404ec00907a8f3e9c73a416b (patch) | |
tree | 6cc5695742a1198668b022b35c8b2a456c4f3f4f /meta/classes/cpan-base.bbclass | |
parent | 80d55bbd6ea2ff93510f3b87ea97322b0b02eaa8 (diff) | |
download | poky-c54117458a19d05d404ec00907a8f3e9c73a416b.tar.gz |
classes: Remove and sanitise import statements
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/cpan-base.bbclass')
-rw-r--r-- | meta/classes/cpan-base.bbclass | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/meta/classes/cpan-base.bbclass b/meta/classes/cpan-base.bbclass index cc0d11e515..919a9b06a5 100644 --- a/meta/classes/cpan-base.bbclass +++ b/meta/classes/cpan-base.bbclass | |||
@@ -9,7 +9,7 @@ RDEPENDS += "${@["perl", ""][(bb.data.inherits_class('native', d))]}" | |||
9 | 9 | ||
10 | # Determine the staged version of perl from the perl configuration file | 10 | # Determine the staged version of perl from the perl configuration file |
11 | def get_perl_version(d): | 11 | def get_perl_version(d): |
12 | import os, bb, re | 12 | import re |
13 | cfg = bb.data.expand('${STAGING_DIR}/${HOST_SYS}/perl/config.sh', d) | 13 | cfg = bb.data.expand('${STAGING_DIR}/${HOST_SYS}/perl/config.sh', d) |
14 | try: | 14 | try: |
15 | f = open(cfg, 'r') | 15 | f = open(cfg, 'r') |
@@ -33,7 +33,6 @@ def is_new_perl(d): | |||
33 | 33 | ||
34 | # Determine where the library directories are | 34 | # Determine where the library directories are |
35 | def perl_get_libdirs(d): | 35 | def perl_get_libdirs(d): |
36 | import bb | ||
37 | libdir = bb.data.getVar('libdir', d, 1) | 36 | libdir = bb.data.getVar('libdir', d, 1) |
38 | if is_new_perl(d) == "yes": | 37 | if is_new_perl(d) == "yes": |
39 | libdirs = libdir + '/perl5' | 38 | libdirs = libdir + '/perl5' |
@@ -42,7 +41,6 @@ def perl_get_libdirs(d): | |||
42 | return libdirs | 41 | return libdirs |
43 | 42 | ||
44 | def is_target(d): | 43 | def is_target(d): |
45 | import bb | ||
46 | if not bb.data.inherits_class('native', d): | 44 | if not bb.data.inherits_class('native', d): |
47 | return "yes" | 45 | return "yes" |
48 | return "no" | 46 | return "no" |