Detecting empty packages
Hello,
inside a PACKAGESPLITFUNCS function , I need to detect if a package is empty, to determine another package's RDEPENDS list. I tried to look at "FILES_${packagename}", but the problem is that this list also includes empty directories sometimes. So, even though "FILES_${packagename}" isnt empty, the package actually is.
This leaves me with the question: how can I detect if a package is empty (as in, has no files) programmatically in a python function ?
cheers