From patchwork Tue Jan 29 19:50:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christopher Baines X-Patchwork-Id: 918 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6D6CB16B0E; Tue, 29 Jan 2019 19:51:12 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 1EF7216B08 for ; Tue, 29 Jan 2019 19:51:12 +0000 (GMT) Received: from localhost ([127.0.0.1]:54773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZPb-0005uC-CL for patchwork@mira.cbaines.net; Tue, 29 Jan 2019 14:51:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZPY-0005u4-VN for guix-patches@gnu.org; Tue, 29 Jan 2019 14:51:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goZPX-0000GE-3p for guix-patches@gnu.org; Tue, 29 Jan 2019 14:51:08 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:51558) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1goZPS-0000Fb-3I for guix-patches@gnu.org; Tue, 29 Jan 2019 14:51:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1goZPR-0005RO-S1 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:51:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34249] [PATCH] guix package: Avoid spinner at end of output. Resent-From: Christopher Baines Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 29 Jan 2019 19:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34249 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34249@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.154879144520890 (code B ref -1); Tue, 29 Jan 2019 19:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 29 Jan 2019 19:50:45 +0000 Received: from localhost ([127.0.0.1]:50839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZPB-0005Qs-8m for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:45 -0500 Received: from eggs.gnu.org ([209.51.188.92]:52656) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1goZP8-0005Qf-NH for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:43 -0500 Received: from lists.gnu.org ([209.51.188.17]:39611) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1goZP3-0008Ru-DJ for submit@debbugs.gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 Received: from eggs.gnu.org ([209.51.188.92]:34621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP1-0005jc-K2 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1goZP0-0008Pq-V8 for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:35 -0500 Received: from li622-129.members.linode.com ([212.71.249.129]:33446 helo=mira.cbaines.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1goZP0-0008P7-PM for guix-patches@gnu.org; Tue, 29 Jan 2019 14:50:34 -0500 Received: from localhost (cpc102582-walt20-2-0-cust14.13-2.cable.virginm.net [86.27.34.15]) by mira.cbaines.net (Postfix) with ESMTPSA id 9957316AB0 for ; Tue, 29 Jan 2019 19:50:32 +0000 (GMT) Received: from localhost (localhost [local]) by localhost (OpenSMTPD) with ESMTPA id 54ed99a9 for ; Tue, 29 Jan 2019 19:50:31 +0000 (UTC) From: Christopher Baines Date: Tue, 29 Jan 2019 19:50:31 +0000 Message-Id: <20190129195031.21496-1-mail@cbaines.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Often guix package will report something like the following when performing operations, for example: guix package -i hello ... building /gnu/store/wiwqmbi66gcr27dac3qqgrc8imyp1344-profile.drv... -117 packages in profile Now there aren't -117 packages in this profile, it's just the spinner running in to the output from Guix package. I'm not sure if this is a proper solution for this issue, but it does work. * guix/scripts/package.scm (build-and-use-profile): Erase the spinner before output. --- guix/scripts/package.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index a633d2ee6d..4db0e72e9b 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -159,6 +159,7 @@ hooks\" run when building the profile." (switch-symlinks profile (basename name)) (unless (string=? profile %current-profile) (register-gc-root store name)) + (display "\r") ; erase the spinner (format #t (N_ "~a package in profile~%" "~a packages in profile~%" count)