diff options
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) |