guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: File search progress: database review and question on triggers


From: Pierre Neidhardt
Subject: Re: File search progress: database review and question on triggers
Date: Sat, 17 Oct 2020 11:14:54 +0200

Ludovic Courtès <ludo@gnu.org> writes:

> It first tries ‘query-path-info’, which succeeds if the store item is
> available and contains info about its size, references, and so on.
>
> When ‘query-path-info’ fails, it falls back to
> ‘query-substitutable-path-info’, which allows it to obtain the same
> information for substitutes.  Thus, it doesn’t need to have the store
> item available locally.

So we could do the same with `guix filesearch`:

- First try the entry in the database.

- If not there, try query-path-info and if it succeeds, populate the
  database.

- If query-path-info does not succeed, try our new
  query-substitutable-filesearch-info.

That would work, no?

-- 
Pierre Neidhardt
https://ambrevar.xyz/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]