From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KF+yNCS2il83QAAA0tVLHw (envelope-from ) for ; Sat, 17 Oct 2020 09:15:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id kM6EMCS2il++DwAA1q6Kng (envelope-from ) for ; Sat, 17 Oct 2020 09:15:16 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 802D6940466 for ; Sat, 17 Oct 2020 09:15:16 +0000 (UTC) Received: from localhost ([::1]:43616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kTiJ1-0003i8-AZ for larch@yhetil.org; Sat, 17 Oct 2020 05:15:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54036) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTiIr-0003hv-Lr for guix-devel@gnu.org; Sat, 17 Oct 2020 05:15:05 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:48473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kTiIo-0005Dm-IM; Sat, 17 Oct 2020 05:15:05 -0400 X-Originating-IP: 90.92.160.122 Received: from bababa (lfbn-idf2-1-1094-122.w90-92.abo.wanadoo.fr [90.92.160.122]) (Authenticated sender: mail@ambrevar.xyz) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 8522020005; Sat, 17 Oct 2020 09:14:55 +0000 (UTC) From: Pierre Neidhardt To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: File search progress: database review and question on triggers In-Reply-To: <87k0vq79ai.fsf@gnu.org> References: <87sgcuh8rb.fsf@ambrevar.xyz> <86imd4e7cr.fsf@gmail.com> <87eenspcf8.fsf@ambrevar.xyz> <865z94dz83.fsf@gmail.com> <87zh6gns4l.fsf@ambrevar.xyz> <87zh5c7hx6.fsf@ambrevar.xyz> <87k0w4zw8q.fsf@gnu.org> <875z7oijxu.fsf@ambrevar.xyz> <87eem3u4n8.fsf@gnu.org> <875z7f6663.fsf@ambrevar.xyz> <87blh6jl32.fsf@gnu.org> <878scaz0te.fsf@ambrevar.xyz> <87y2k9g6ta.fsf@gnu.org> <87eem1xn4i.fsf@ambrevar.xyz> <87k0vq79ai.fsf@gnu.org> Date: Sat, 17 Oct 2020 11:14:54 +0200 Message-ID: <874kmttdrl.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=217.70.183.200; envelope-from=mail@ambrevar.xyz; helo=relay7-d.mail.gandi.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/17 05:14:56 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: 6 X-Spam_score: 0.6 X-Spam_bar: / X-Spam_report: (0.6 / 5.0 requ) BAYES_00=-1.9, FROM_SUSPICIOUS_NTLD=0.499, PDS_OTHER_BAD_TLD=1.999, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Mathieu Othacehe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -3.11 X-TUID: 5k8pPlwz/6qe --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > It first tries =E2=80=98query-path-info=E2=80=99, which succeeds if the s= tore item is > available and contains info about its size, references, and so on. > > When =E2=80=98query-path-info=E2=80=99 fails, it falls back to > =E2=80=98query-substitutable-path-info=E2=80=99, which allows it to obtai= n the same > information for substitutes. Thus, it doesn=E2=80=99t need to have the s= tore > item available locally. So we could do the same with `guix filesearch`: =2D First try the entry in the database. =2D If not there, try query-path-info and if it succeeds, populate the database. =2D If query-path-info does not succeed, try our new query-substitutable-filesearch-info. That would work, no? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFGBAEBCAAwFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl+Ktg4SHG1haWxAYW1i cmV2YXIueHl6AAoJEJvc9Jeku8x/evEH/1gTRKGL2T34XahUUGoJYR/nODTCYt2J 6mFXGMykR/aQmnR/cL3fu0Z03hCZx+7Z/aKLytD6zcuVE7mCl6i8Mxe2C/txJIW1 4JlL3RcZ4rMEyxTcVp1hvmnhw6RSrDcwgtfYPv578NVynSrsJGZjzyuPYEJykY3B BX9f/wfBBX6j+tysjGyd3IvmooHOzPiDn3clzMD/ORjUawLW6aZ6xDNukWK3lOrd lOlj0M7ANnQ8AOOBxyHfdLpwdDYnJz4cPSy1S/oQReFqktyfK2i9sJIN7ol2vEVI uG6TcVcludjzjFPYhuOCQQcfFK9JoAVQ1z+yP6xofvMbp4MsTQKEuqQ= =5guf -----END PGP SIGNATURE----- --=-=-=--