Skip to contentSkip to conversation

package.bbclass: don't add self to recommends

PATCH pHilipp Zabel 1 participant 1 message Aug 23, 2007

lore
Share & tools
lore
#0 lore raw

Hi, does this look about right?

package.bbclass +1 -1
@@ -848,7 +848,7 @@ python package_depchains() {
 
 		for depend in rdepends:
 			pkgname = getname(depend, suffix)
-			if not pkgname in rreclist and packaged(pkgname, d):
+			if pkgname != pkg and not pkgname in rreclist and packaged(pkgname, d):
 				rreclist.append(pkgname)
 
 		#bb.note('setting: RRECOMMENDS_%s=%s' % (pkg, ' '.join(rreclist)))

cheers
Philipp