From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: [PATCH -v2 2/2] guix: profiles: create fonts.dir/scale for all fonts directories Date: Tue, 7 Mar 2017 21:24:52 +0100 Message-ID: <20170307212452.2ddda246@scratchpost.org> References: <20170307110749.31614-1-huang.ying.caritas@gmail.com> <20170307110749.31614-2-huang.ying.caritas@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1clLfS-0005BL-Jl for guix-devel@gnu.org; Tue, 07 Mar 2017 15:25:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1clLfO-0007i9-Mt for guix-devel@gnu.org; Tue, 07 Mar 2017 15:25:10 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:37921) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1clLfO-0007fT-GL for guix-devel@gnu.org; Tue, 07 Mar 2017 15:25:06 -0500 In-Reply-To: <20170307110749.31614-2-huang.ying.caritas@gmail.com> 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: Huang Ying Cc: guix-devel@gnu.org Hi, > + (with-directory-excursion dir > + (and (file-exists? fonts-scale-file) > + (delete-file fonts-scale-file)) > + (and (file-exists? fonts-dir-file) > + (delete-file fonts-dir-file)) > + (system* mkfontscale) > + (system* mkfontdir) Please do not throw away the status code here (result of system*). You can check for okayness by (zero? (system* ...)).