[oe] [Bug 4549] A number of xorg dev packages are uninstallable
Phil Blundell
pb at reciva.com
Tue Sep 16 15:49:26 UTC 2008
On Mon, 2008-09-15 at 17:21 -0700, Tom Rini wrote:
> for pkg in package_list:
> rdepends = explode_deps(bb.data.getVar('RDEPENDS_' + pkg, d, 1) or bb.data.getVar('RDEPENDS', d, 1) or "")
> +
> + if main_is_empty:
> + for rdep in rdepends:
> + if rdep.find(main_pkg + " ") != -1:
> + rdepends.remove(rdep)
> for l in dangling_links[pkg]:
> found = False
> bb.debug(1, "%s contains dangling link %s" % (pkg, l))
If you change that 1 to 0 in the first bb.data.getVar() call, the
package names should be left in their unexpanded form and you can then
safely match against a literal '${PN} (= ${PV})' as found in
bitbake.conf. That's still a bit yucky but probably better than what
you have there.
Other than that, yeah, this looks fine to me.
p.
More information about the Openembedded-devel
mailing list