From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Odd behavior with --dry-run and --upgrade Date: Tue, 26 Jul 2016 14:41:34 +0200 Message-ID: <87r3ag8tc1.fsf@gnu.org> References: <87y44sqtiw.fsf@gnu.org> <87h9bfcteu.fsf@gmail.com> <87y44q8yta.fsf@gnu.org> <8760rtbc14.fsf@gnu.org> <87r3agd8yg.fsf@gnu.org> <87mvl41z1a.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37030) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS1g9-0004Z4-7X for guix-devel@gnu.org; Tue, 26 Jul 2016 08:41:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS1g5-0000N7-0H for guix-devel@gnu.org; Tue, 26 Jul 2016 08:41:44 -0400 In-Reply-To: <87mvl41z1a.fsf@gnu.org> (Roel Janssen's message of "Tue, 26 Jul 2016 12:20:17 +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" To: Roel Janssen Cc: guix-devel , Alex Kost Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Roel Janssen skribis: >> >>> Ludovic Court=C3=A8s writes: [...] >> Everything that relates to command-line argument processing is in (guix >> scripts build), for the common options, and then in each (guix scripts >> *) module. >> >> Roughly, the change I suggest would be along these lines: >> > > Aha. Disabling grafting when the `--dry-run' switch is provided seems > like exactly what we want to do. Should we add a `--enable-grafts' too? I don=E2=80=99t think so. Given that they=E2=80=99re about security update= d, I think grafts should always be enabled by default, except for --dry-run. >> However, since --dry-run is processed separately in each command, this >> change should probably be duplicated. >> >> Would you like to look into it? > > Yes! Please allow me some time though. Sure, no rush! >> Something similar should be done in the Emacs interface. > > I'm not familiar with the code of the Emacs interface. Any other > takers for it? Otherwise I will look into it, but that will take even > more time :) Maybe Alex can give a hand? :-) Thank you for looking into it! Ludo=E2=80=99.