From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: [PATCH] guix lint: at the "checking" line, make sure to delete the old line's text before overwriting it (with a possibly shorter text). Date: Fri, 8 Apr 2016 17:59:12 +0200 Message-ID: <20160408175912.6c5df4b7@scratchpost.org> References: <20160407143744.3b0d8e98@scratchpost.org> 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]:60512) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoYoc-0006mT-6H for guix-devel@gnu.org; Fri, 08 Apr 2016 11:59:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aoYoX-0006fX-7B for guix-devel@gnu.org; Fri, 08 Apr 2016 11:59:22 -0400 Received: from dd1012.kasserver.com ([85.13.128.8]:50516) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aoYoX-0006fP-1O for guix-devel@gnu.org; Fri, 08 Apr 2016 11:59:17 -0400 Received: from localhost (91.141.3.127.wireless.dyn.drei.com [91.141.3.127]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 9E2221CA1AD2 for ; Fri, 8 Apr 2016 17:59:14 +0200 (CEST) In-Reply-To: <20160407143744.3b0d8e98@scratchpost.org> 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: Guix-devel * guix/scripts/lint.scm (run-checkers): at the "checking" line, make sure t= o delete the old line's text before overwriting it (with a possibly shorter= text). --- guix/scripts/lint.scm | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/guix/scripts/lint.scm b/guix/scripts/lint.scm index 27b9e15..d2fed67 100644 --- a/guix/scripts/lint.scm +++ b/guix/scripts/lint.scm @@ -3,6 +3,7 @@ ;;; Copyright =C2=A9 2014, 2015 Eric Bavier ;;; Copyright =C2=A9 2013, 2014, 2015, 2016 Ludovic Court=C3=A8s ;;; Copyright =C2=A9 2015, 2016 Mathieu Lirzin +;;; Copyright =C2=A9 2016 Danny Milosavljevic ;;; ;;; This file is part of GNU Guix. ;;; @@ -799,11 +800,14 @@ or a list thereof") (name (package-full-name package))) (for-each (lambda (checker) (when tty? - (format (current-error-port) "checking ~a [~a]...\r" + (format (current-error-port) "checking ~a [~a]...\x1b[K\= r" name (lint-checker-name checker)) (force-output (current-error-port))) ((lint-checker-check checker) package)) - checkers))) + checkers) + (when tty? + (format (current-error-port) "\x1b[K") + (force-output (current-error-port))))) =20 =0C ;;; --=20 2.7.3