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 16:37:17 +0200 Message-ID: <87twfc79eq.fsf@gnu.org> References: <87y44sqtiw.fsf@gnu.org> <87h9bfcteu.fsf@gmail.com> <87y44q8yta.fsf@gnu.org> <8760rtbc14.fsf@gnu.org> <87r3agd8yg.fsf@gnu.org> <87fuqwa558.fsf@gmail.com> 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]:36091) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bS3U8-0005ud-HA for guix-devel@gnu.org; Tue, 26 Jul 2016 10:37:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bS3U2-00006t-Ja for guix-devel@gnu.org; Tue, 26 Jul 2016 10:37:27 -0400 In-Reply-To: <87fuqwa558.fsf@gmail.com> (Alex Kost's message of "Tue, 26 Jul 2016 16:41:07 +0300") 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: Alex Kost Cc: guix-devel Alex Kost skribis: > The only way I see for the Emacs interface is to modify > "emacs/guix-main.scm" to parameterize =E2=80=98%graft?=E2=80=99 as well a= nd to set it > depending on the current value of =E2=80=98dry-run=E2=80=99. AFAICT this > parameterization should be added to: > > - 'process-package-actions': it is responsible for operations with > profiles (installing/upgrading/removing packages); > > - 'package-source-build-derivation': it is responsible for building > package sources. > > If my understanding is correct, I can make a patch for this. Yes, it sounds good. > I can also add 'grafts' option that will appear in prompts (in the > mode-line along with 'substitutes' and 'dry-run'), but I'm not sure if > it will be useful since dry-run will disable grafts anyway. Yeah, I don=E2=80=99t think it=E2=80=99s useful. Thanks, Ludo=E2=80=99.