summaryrefslogtreecommitdiff
path: root/classes/package.oeclass
diff options
context:
space:
mode:
Diffstat (limited to 'classes/package.oeclass')
-rw-r--r--classes/package.oeclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/package.oeclass b/classes/package.oeclass
index 03228188ed..917ed2e178 100644
--- a/classes/package.oeclass
+++ b/classes/package.oeclass
@@ -1,7 +1,7 @@
def legitimize_package_name(s):
return s.lower().replace('_', '-').replace('@', '+').replace(',', '+')
-def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None):
+def do_split_packages(d, root, file_regex, output_pattern, description, postinst=None, recursive=False, hook=None, extra_depends=None, aux_files_pattern=None, postrm=None, allow_dirs=False):
import os, os.path, oe
dvar = oe.data.getVar('D', d, 1)
@@ -37,7 +37,8 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
if not m:
continue
f = os.path.join(dvar + root, o)
- if not stat.S_ISREG(os.lstat(f).st_mode):
+ mode = os.lstat(f).st_mode
+ if not (stat.S_ISREG(mode) or (allow_dirs and stat.S_ISDIR(mode))):
continue
on = legitimize_package_name(m.group(1))
pkg = output_pattern % on