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