Skip to contentSkip to conversation

Detecting empty packages

DISCUSSION Carlos Rafael Giani 1 participant 1 message May 14, 2013

lore
Share & tools
lore
#0 lore raw

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