From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1MIU4W-0000DI-9R for garchives@archives.gentoo.org; Sun, 21 Jun 2009 20:55:28 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3592FE043D; Sun, 21 Jun 2009 20:55:27 +0000 (UTC) Received: from smtprelay05.ispgateway.de (smtprelay05.ispgateway.de [80.67.31.28]) by pigeon.gentoo.org (Postfix) with ESMTP id 0313DE043D for ; Sun, 21 Jun 2009 20:55:27 +0000 (UTC) Received: from [85.179.11.219] (helo=[192.168.0.3]) by smtprelay05.ispgateway.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1MIU4U-0000pF-2b; Sun, 21 Jun 2009 22:55:26 +0200 Message-ID: <4A3E9E3D.6050400@hartwork.org> Date: Sun, 21 Jun 2009 22:55:25 +0200 From: Sebastian Pipping User-Agent: Thunderbird 2.0.0.21 (X11/20090502) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org CC: wrobel@gentoo.org Subject: Re: [gentoo-dev] Gentoo stats server/client @ 2009-06-21 References: <4A3D8C60.2040701@hartwork.org> <4A3E49C6.5070804@hartwork.org> In-Reply-To: <4A3E49C6.5070804@hartwork.org> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Df-Sender: 874396 X-Archives-Salt: 72275aea-23db-4a70-aa5c-00db8c32f5c1 X-Archives-Hash: 2814d4828e4cab299fe0725d5b1ab2b3 Sebastian Pipping wrote: > A) Download and keep a snapshot of layman-global.txt in sync ourselves > > B) Use heuristic on layman's cache > > - Resolve ${cache} from /etc/layman/layman.cfg > > - Parse all ${cache}/cache_*.xml files using the Layman API > > - Compare the list of overlays each file provides against > a hardcoded snapshot of overlay names ("akoya alexxy arcon ..") > > - Assume the file with the highest count of matches for > layman-global.txt if the count is >=50 of the number hardcoded > overlays forget about (B). as we're dealing with privacy a 100% approach is much better than some heuristic. i'll keep an extra copy of layman-global.txt in sync and use modification timestamps on any file in layman's cache dir as trigger to re-sync with layman-global.txt from the web. that's an optimized version of (A) to me. sebastian