From e7931fb2e81889bdd492d3ec3f9617ac402d260b Mon Sep 17 00:00:00 2001 From: Justin Patrin Date: Tue, 4 Apr 2006 04:17:19 +0000 Subject: package.bbclass: deal with multiple copies of the same package in PACKAGES --- classes/package.bbclass | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'classes') diff --git a/classes/package.bbclass b/classes/package.bbclass index d32cf53828..e0ab7ad27f 100644 --- a/classes/package.bbclass +++ b/classes/package.bbclass @@ -241,6 +241,16 @@ python populate_packages () { return 0 return (s[stat.ST_MODE] & stat.S_IEXEC) + pkgs = set() + packages_joined = "" + for pkg in packages.split(): + if pkg in pkgs: + bb.note("%s is listed in PACKAGES multiple times" % (pkg)) + else: + pkgs.add(pkg) + packages_joined = "%s %s" % (packages_joined, pkg) + packages = packages_joined + for pkg in packages.split(): localdata = bb.data.createCopy(d) root = os.path.join(workdir, "install", pkg) -- cgit v1.2.3