From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ptmx.org ([178.63.28.110]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1UcHzU-0003xW-DS for openembedded-devel@lists.openembedded.org; Tue, 14 May 2013 18:22:18 +0200 Received: from [10.1.14.186] (83-64-248-68.inzersdorf.xdsl-line.inode.at [83.64.248.68]) by ptmx.org (Postfix) with ESMTPSA id 200332939D for ; Tue, 14 May 2013 18:04:07 +0200 (CEST) Message-ID: <51926076.9020706@pseudoterminal.org> Date: Tue, 14 May 2013 18:04:06 +0200 From: Carlos Rafael Giani User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: "openembedded-devel@lists.openembedded.org" Subject: Detecting empty packages X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 May 2013 16:22:18 -0000 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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