From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark H Weaver Subject: Re: info dir clashes Date: Sun, 05 Apr 2015 16:19:17 -0400 Message-ID: <87lhi649bu.fsf@netris.org> References: <87zj6x5gt5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yer0S-0004HK-Ot for guix-devel@gnu.org; Sun, 05 Apr 2015 16:18:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yer0L-0001Bi-PU for guix-devel@gnu.org; Sun, 05 Apr 2015 16:18:56 -0400 In-Reply-To: (Federico Beffa's message of "Sun, 5 Apr 2015 22:04:14 +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: Federico Beffa Cc: Guix-devel Federico Beffa writes: > From 06441ea6992808ef96139ab171269172dc65f2db Mon Sep 17 00:00:00 2001 > From: Federico Beffa > Date: Sun, 5 Apr 2015 21:59:18 +0200 > Subject: [PATCH] build-system/gnu: Add 'delete-info-dir-file' phase. > > * guix/build/gnu-build-system.scm (delete-info-dir-file): New procedure. > (%standard-phases): Use it. > --- > guix/build/gnu-build-system.scm | 10 ++++++++++ > 1 file changed, 10 insertions(+) > > diff --git a/guix/build/gnu-build-system.scm b/guix/build/gnu-build-system.scm > index 5220bda..284d1ee 100644 > --- a/guix/build/gnu-build-system.scm > +++ b/guix/build/gnu-build-system.scm > @@ -538,6 +538,15 @@ DOCUMENTATION-COMPRESSOR-FLAGS." > (format #t "not compressing documentation~%") > #t))) > > +(define* (delete-info-dir-file #:key outputs #:allow-other-keys) > + (every (match-lambda > + ((output . directory) > + (let ((info-dir-file (string-append directory "/share/info/dir"))) > + (when (file-exists? info-dir-file) > + (delete-file info-dir-file)) > + #t))) > + outputs)) In this case 'for-each' is the appropriate tool, since it ignores the results of the procedure calls, which are made only for their side effects. So you can omit the #t. Otherwise, looks good to me for 'core-updates'. Thanks! Mark