From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1RWUMv-0005qM-Da for ptxdist@pengutronix.de; Fri, 02 Dec 2011 15:45:41 +0100 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1RWUMv-0004H8-Cb for ptxdist@pengutronix.de; Fri, 02 Dec 2011 15:45:41 +0100 Date: Fri, 2 Dec 2011 15:45:41 +0100 From: Michael Olbrich Message-ID: <20111202144541.GD9466@pengutronix.de> References: <4ED61796.7090105@amk-drives.bg> <20111201182924.GD32672@pengutronix.de> <4ED8916D.7080202@rsi-elektrotechnik.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4ED8916D.7080202@rsi-elektrotechnik.de> Subject: Re: [ptxdist] Automatic package rebuild after rule/patch file update Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Fri, Dec 02, 2011 at 09:50:53AM +0100, Josef Holzmayr wrote: > On 01.12.2011 19:29, Michael Olbrich wrote: > >>Now I try to prepare script that will check before SVN update and > >>remove states for changed packages, but if there is a elegant way > >>it's better to use. > > > >Not right now. I've tried to do this, but so far I could not find a way to > >do this, that performs well. > > Is a simple mtime comparison too unreliable? If it is, by "not > performing well" I guess you mean the obvious possibility to hash > the rules files... Well first you need to find all files, that need to be considered. That takes some time. And its far too easy to change the mtime, especially when using an uninstalled ptxdist, so you need a hash. I tied to do something like that and gave up when I got +10 seconds to get a 'everything is up to date' for a larger BSP. Michael -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | -- ptxdist mailing list ptxdist@pengutronix.de