diff options
author | Justin Patrin <papercrane@gmail.com> | 2006-04-04 04:17:19 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-04-04 04:17:19 +0000 |
commit | e7931fb2e81889bdd492d3ec3f9617ac402d260b (patch) | |
tree | 0efd7ff56ed202d6b322b80457a4986f34669ecf /classes | |
parent | 1a2a224fb962e22ccf948bbdc11fd9b6f5f335bc (diff) |
package.bbclass: deal with multiple copies of the same package in PACKAGES
Diffstat (limited to 'classes')
-rw-r--r-- | classes/package.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
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) |