From b5a7b2f50f75f480f240bec89101d5b11adcecf5 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Thu, 1 Apr 2004 19:08:04 +0000 Subject: Merge openembedded@openembedded.bkbits.net:packages into linux.local:/home/kergoth/code/packages 2004/04/01 21:08:03+02:00 vanille.de!mickey eliminate the usage of the deprecated 'string' module. please don't use it anymore. see diff for how to rewrite this stuff BKrev: 406c6894YHeawcERN76y3eOgFVsoMw --- pango/pango_1.2.5.oe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pango') diff --git a/pango/pango_1.2.5.oe b/pango/pango_1.2.5.oe index f023f157a2..68155cd13c 100644 --- a/pango/pango_1.2.5.oe +++ b/pango/pango_1.2.5.oe @@ -30,14 +30,14 @@ do_stage () { } python populate_packages_prepend () { - import string, os + import os def do_split(root, pattern, format, description, postinst): dvar = oe.data.getVar('D', d, 1) if not dvar: oe.error("D not defined") return - packages = string.split(oe.data.getVar('PACKAGES', d, 1)) + packages = oe.data.getVar('PACKAGES', d, 1).split() if not packages: oe.error("PACKAGES not defined") return @@ -58,7 +58,7 @@ python populate_packages_prepend () { oe.data.setVar('DESCRIPTION_' + pkg, description % on, d) oe.data.setVar('pkg_postinst_' + pkg, postinst, d) - oe.data.setVar('PACKAGES', string.join(packages, ' '), d) + oe.data.setVar('PACKAGES', ' '.join(packages), d) libdir = oe.data.getVar('libdir', d, 1) if not libdir: -- cgit v1.2.3