From mboxrd@z Thu Jan 1 00:00:00 1970 From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Subject: Re: updating list of substitutes Date: Wed, 22 Apr 2015 15:08:49 +0200 Message-ID: <87oamgwbry.fsf@taylan.uni.cx> References: <20150421064525.GA15795@thebird.nl> <87a8y1q49z.fsf@gnu.org> <20150421084028.GB16564@thebird.nl> <20150422114635.GA24566@thebird.nl> <20150422122421.GA4739@debian.math.u-bordeaux1.fr> <20150422123507.GC24794@thebird.nl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkuOb-0000f1-2a for guix-devel@gnu.org; Wed, 22 Apr 2015 09:08:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkuOa-0006HI-6A for guix-devel@gnu.org; Wed, 22 Apr 2015 09:08:53 -0400 Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:38738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkuOZ-0006HD-Ui for guix-devel@gnu.org; Wed, 22 Apr 2015 09:08:52 -0400 Received: by wiun10 with SMTP id n10so56595619wiu.1 for ; Wed, 22 Apr 2015 06:08:51 -0700 (PDT) In-Reply-To: <20150422123507.GC24794@thebird.nl> (Pjotr Prins's message of "Wed, 22 Apr 2015 14:35:07 +0200") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Pjotr Prins Cc: guix-devel@gnu.org Pjotr Prins writes: >> But even when installing, one may not need to download anything if the >> package is already in the store. So I think the following would be good: >> Determine the list of packages to be installed in a profile with "guix >> package" or to be built with "guix build". If they are all in the store, >> fine, otherwise, check the age of the list of substitutes and if it is >> to old, download it again. > > I have the impression this is what is happening now. Why have a TTL in > the first place? I think what Andreas describes differs from current behavior in that it doesn't download the new substitute list (even if the TTL has expired) if there's nothing to download. When there is something to download, it's probably preferable to still check the TTL, so one doesn't constantly re-download the substitute list when some substitute simply doesn't exist on Hydra. Taylan