summaryrefslogtreecommitdiff
path: root/classes/package.oeclass
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2004-08-21 17:10:58 +0000
committerPhil Blundell <philb@gnu.org>2004-08-21 17:10:58 +0000
commit12454191edf9fe75a300eca5491cf615179ebbbf (patch)
treed3721c8cf4d7eaa3e3768ca7b64a1d2f20aca96b /classes/package.oeclass
parentb3495c860254d7a5f004313e2b287c14a7398021 (diff)
fix depends for library locale packages
BKrev: 412782221l9GRJARx0_2U4pnR7rAGQ
Diffstat (limited to 'classes/package.oeclass')
-rw-r--r--classes/package.oeclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/package.oeclass b/classes/package.oeclass
index 36c4b1e345..f0d5f5a832 100644
--- a/classes/package.oeclass
+++ b/classes/package.oeclass
@@ -546,13 +546,14 @@ python package_do_split_locales() {
locales = os.listdir(localedir)
mainpkg = packages[0]
+ mainpkg_n = oe.data.getVar('PKG_%s' % mainpkg, d, 1) or mainpkg
for l in locales:
ln = legitimize_package_name(l)
pkg = pn + '-locale-' + ln
packages.append(pkg)
oe.data.setVar('FILES_' + pkg, os.path.join(datadir, 'locale', l), d)
- oe.data.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (mainpkg, ln), d)
+ oe.data.setVar('RDEPENDS_' + pkg, '%s virtual-locale-%s' % (mainpkg_n, ln), d)
oe.data.setVar('RPROVIDES_' + pkg, '%s-locale %s-translation' % (pn, ln), d)
oe.data.setVar('DESCRIPTION_' + pkg, '%s translation for %s' % (l, pn), d)