diff options
author | Phil Blundell <philb@gnu.org> | 2004-07-29 12:30:24 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2004-07-29 12:30:24 +0000 |
commit | 97a7856719d53e9b3eec392de429763ae55f3b39 (patch) | |
tree | c9f97f5a39be7531d0468f5dae46c4002adb7298 /classes | |
parent | be81f70a4ba9d0e225177efcd801548a3212c1e0 (diff) |
Merge bk://openembedded@openembedded.bkbits.net/packages
into stealth.(none):/home/pb/oe/oe-packages
2004/07/29 10:58:21+01:00 (none)!pb
start fixing gnumeric package split code
BKrev: 4108ede0xCKqkQiiKk6i2CiMrb2u-g
Diffstat (limited to 'classes')
-rw-r--r-- | classes/package.oeclass | 5 |
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 |