summaryrefslogtreecommitdiff
path: root/classes/package.oeclass
diff options
context:
space:
mode:
authorBruno Randolf <br1@subnet.at>2004-09-22 13:43:53 +0000
committerBruno Randolf <br1@subnet.at>2004-09-22 13:43:53 +0000
commit29425caf484ee79028563b5b28273e5757604107 (patch)
tree63a596f27dcc91be1593d2c1cc2f03977dbed4d4 /classes/package.oeclass
parent4f9afad01e0cfe484239ed8caa917370348ba1d6 (diff)
Merge bk://openembedded@openembedded.bkbits.net/packages
into null.(none):/data/mtx/oe/oe.write/packages 2004/09/22 15:41:59+02:00 (none)!br1 perl build for mipsel. package all modules in seperate ipkgs. BKrev: 41518199E61VILo1bjmTICJhj4-fBg
Diffstat (limited to 'classes/package.oeclass')
-rw-r--r--classes/package.oeclass10
1 files changed, 7 insertions, 3 deletions
diff --git a/classes/package.oeclass b/classes/package.oeclass
index cdebea9c6b..cb87267e9e 100644
--- a/classes/package.oeclass
+++ b/classes/package.oeclass
@@ -1,7 +1,7 @@
def legitimize_package_name(s):
- return s.lower().replace('_', '-').replace('@', '+').replace(',', '+')
+ 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):
+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):
import os, os.path, oe
dvar = oe.data.getVar('D', d, 1)
@@ -33,7 +33,11 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
for o in objs:
import re, stat
- m = re.match(file_regex, os.path.basename(o))
+ if match_path:
+ m = re.match(file_regex, o)
+ else:
+ m = re.match(file_regex, os.path.basename(o))
+
if not m:
continue
f = os.path.join(dvar + root, o)