summaryrefslogtreecommitdiff
path: root/classes/package.bbclass
diff options
context:
space:
mode:
authorRobert Schuster <thebohemian@gmx.net>2008-10-07 21:37:58 +0000
committerRobert Schuster <thebohemian@gmx.net>2008-10-07 21:37:58 +0000
commitd9aa48e8ac4c98bb5704445ccd6d3a8ed95984b5 (patch)
treefe65202b2dae9a869bac2cb5d88e5fa8cff1696f /classes/package.bbclass
parent376502fa8b079d620430a9671ad22169ba85d6db (diff)
parent6f2f6d9acfc6c53adbc97893505a4fbb142d6f45 (diff)
merge of '9706988717e3c2c70303850cb12a58843a12fa20'
and 'd6e042ee5309203ac2054f2cbb7ead6cb61a4e38'
Diffstat (limited to 'classes/package.bbclass')
-rw-r--r--classes/package.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index f740906c52..a12bfb0a21 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -21,7 +21,7 @@ def legitimize_package_name(s):
# Remaining package name validity fixes
return s.lower().replace('_', '-').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, allow_dirs=False, prepend=False, match_path=False, aux_files_pattern_verbatim=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, prepend=False, match_path=False, aux_files_pattern_verbatim=None, allow_links=False):
"""
Used in .bb files to split up dynamically generated subpackages of a
given package, usually plugins or modules.
@@ -70,7 +70,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
continue
f = os.path.join(dvar + root, o)
mode = os.lstat(f).st_mode
- if not (stat.S_ISREG(mode) or (allow_dirs and stat.S_ISDIR(mode))):
+ if not (stat.S_ISREG(mode) or (allow_links and stat.S_ISLNK(mode)) or (allow_dirs and stat.S_ISDIR(mode))):
continue
on = legitimize_package_name(m.group(1))
pkg = output_pattern % on