summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--classes/package.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index 53ec3b8e28..cbd772cd9f 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -227,6 +227,8 @@ python populate_packages () {
if f == l:
found = True
bb.debug(1, "target found in %s" % p)
+ if p == pkg:
+ break
dp = bb.data.getVar('PKG_' + p, d, 1) or p
if not dp in rdepends:
rdepends.append(dp)