From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: Upgrading packages with substitutes only (bug #26608) Date: Sun, 18 Jun 2017 11:38:45 +0200 Message-ID: <87injt7hzu.fsf@elephly.net> References: <1497641285.3576580.1011852760.32CE7351@webmail.messagingengine.com> <8737ay9rb7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53850) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dMWfa-0005t8-E3 for guix-devel@gnu.org; Sun, 18 Jun 2017 05:38:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dMWfZ-0003PT-Gx for guix-devel@gnu.org; Sun, 18 Jun 2017 05:38:58 -0400 In-reply-to: <8737ay9rb7.fsf@gnu.org> 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" To: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: guix-devel@gnu.org Ludovic Courtès writes: > BTW, should --only-substitutes filter out packages without a substitute, > or should it simply stop and report the list of missing substitutes > (after which the user could use --do-not-upgrade)? In my opinion “--only-substitutes” should stop and report a list. If it continued without complaining there could be problems: * partial upgrades could leave the profile in an unusable state * an attacker could use this to trick a user into thinking that they have all available updates On the other hand, it would make “--only-substitutes” less usable, because to actually perform work one would have to deal with the failure case. I suppose it could download the substitutes but not build a new profile and report an error at that point. -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net