[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#34249] [PATCH] guix package: Avoid spinner at end of output.
From: |
Christopher Baines |
Subject: |
[bug#34249] [PATCH] guix package: Avoid spinner at end of output. |
Date: |
Tue, 29 Jan 2019 19:50:31 +0000 |
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)
--
2.20.1
- [bug#34249] [PATCH] guix package: Avoid spinner at end of output.,
Christopher Baines <=