From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 2OrFK8N9KGLS8QAAgWs5BA (envelope-from ) for ; Wed, 09 Mar 2022 11:13:23 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iL1BKMN9KGIF7wAAauVa8A (envelope-from ) for ; Wed, 09 Mar 2022 11:13:23 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 333A831AF6 for ; Wed, 9 Mar 2022 11:13:23 +0100 (CET) Received: from localhost ([::1]:37004 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nRtJq-0002t6-9M for larch@yhetil.org; Wed, 09 Mar 2022 05:13:22 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56836) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRtJW-0002oO-LB for guix-patches@gnu.org; Wed, 09 Mar 2022 05:13:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRtJW-0004oD-BF for guix-patches@gnu.org; Wed, 09 Mar 2022 05:13:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nRtJW-0003JR-0y for guix-patches@gnu.org; Wed, 09 Mar 2022 05:13:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#54307] [PATCH 2/2] ui: 'show-what-to-build' highlights "would be downloaded" headings. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 09 Mar 2022 10:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54307 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54307@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 54307-submit@debbugs.gnu.org id=B54307.164682077812711 (code B ref 54307); Wed, 09 Mar 2022 10:13:01 +0000 Received: (at 54307) by debbugs.gnu.org; 9 Mar 2022 10:12:58 +0000 Received: from localhost ([127.0.0.1]:58600 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRtJS-0003Iu-D9 for submit@debbugs.gnu.org; Wed, 09 Mar 2022 05:12:58 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nRtJQ-0003IZ-Ua for 54307@debbugs.gnu.org; Wed, 09 Mar 2022 05:12:57 -0500 Received: from [2001:470:142:3::e] (port=32936 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nRtJG-0004m5-0I; Wed, 09 Mar 2022 05:12:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=U6C2aisN+Ks3fFBlQfyCGHmpRXc+AmhnMajhgo/Q3bA=; b=T/yTVguf3Rp1aCkJKCEO zjUou6P2EB0+DpXWxf0QJ/sFvTPg+MmQZ9L0yGu6+FqjcZv2IyHKp2bFK3Xrmmen9p8AYe3yecz7C qRESuCtB1DOWlFAk83X2eVkKdk8n29JcVL+O+MifKWlEwt+jr+S3pc4i2GDNzfjaAsHfc/x/wrkoh OtYjypLU5PCBfrLdPl3YbYxYg028GcykTL3HZtPgausgo2YwBK4aAJniFk0sWsWR/8WoZAH3p2XdI 1vgwxl9tVThdCfW7p+qUAa9yhOIx7IQDi7DsgHn3ivU3XCwyx/yA1KqL5yo0vAgvAwvNjqNvyIqg1 U/h5t0KSi5r2Cw==; Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:52476 helo=gnu.org) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nRtJE-0002ig-PZ; Wed, 09 Mar 2022 05:12:44 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Wed, 9 Mar 2022 11:12:34 +0100 Message-Id: <20220309101234.24236-2-ludo@gnu.org> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20220309101234.24236-1-ludo@gnu.org> References: <20220309101234.24236-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1646820803; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=U6C2aisN+Ks3fFBlQfyCGHmpRXc+AmhnMajhgo/Q3bA=; b=ibT0d0IxqhxTGXuSPBkRYq7JRZzVs2rio7oOOzDZ16xnldD9s1HvHUN8IoCd2LuL0Mn2Ef iHXKdahJKB2KarScGJPhgbMlI7dYETHV52xhenI1QvfbI7hJ09uhXAnlz5y0zgQV6d1vcf ZLvUV8pM1LJRoKqNJaHS5CYqRYGPZg5foWIF7Cyh4PAoLIBgkZvx1qqxnDKT/Dn3jWRUmX I2u7kGx8YiFBHp+ZWEiN72He9sSIjqsKjHKHh3Tfc4soV+uAepdsyjWnuwW1FI3YvFuQ2d keCTtKvTZb/jTxJubd7cA0falUg1AxTe1yQuYBRvOSZjuLqcMjK2RAZXUXn1OA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1646820803; a=rsa-sha256; cv=none; b=U2ADfNI17Y5abWoWTKOBikODXkD6+FSwcBnGUgLqg0m+wsjx4un/c0VKAgYUf7VB4NJimm oJixG7466dVjK83mQKDCnFcIPdR5kQcQWvIRw2T/AteBeu/FsPLk7eb++iVBvDJsAguIvR 07GhM5Cn82g8+M1rgXjvjS6uIeaY5PrO3cBmL4kbORwRKo7YNAENE73QFHBhj4rbRt+DFG fjoOrd06s+S8NQ/PLIUneBXOfoK2ZUJKdG2pbkQQ54+0bHAeC6sSyyBz5lTHB6R0OS0UyD N+u0eZP2ObgsmF5DWKeZME2hzR/84P3H/BgoGPoUEMGcmT8omZGOCKpnfbLqvg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="T/yTVguf"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.62 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="T/yTVguf"; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 333A831AF6 X-Spam-Score: -1.62 X-Migadu-Scanner: scn0.migadu.com X-TUID: NBZgSnubEoyD * guix/ui.scm (show-what-to-build): Highlight "X MB would be downloaded". --- guix/ui.scm | 74 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 44 insertions(+), 30 deletions(-) diff --git a/guix/ui.scm b/guix/ui.scm index 8e4e3e2dfc..6c194eb3c9 100644 --- a/guix/ui.scm +++ b/guix/ui.scm @@ -1041,21 +1041,28 @@ (define display-download-size? (map colorized-store-item build))) (cond ((>= verbosity 2) (if display-download-size? - (format (current-error-port) - ;; TRANSLATORS: "MB" is for "megabyte"; it should be - ;; translated to the corresponding abbreviation. - (G_ "~:[~,1h MB would be downloaded:~%~{ ~a~%~}~;~]") - (null? download) - download-size - (map (compose colorized-store-item substitutable-path) - download)) - (format (current-error-port) - (N_ "~:[The following file would be downloaded:~%~{ ~a~%~}~;~]" - "~:[The following files would be downloaded:~%~{ ~a~%~}~;~]" - (length download)) - (null? download) - (map (compose colorized-store-item substitutable-path) - download))) + (begin + (format (current-error-port) + (highlight + ;; TRANSLATORS: "MB" is for "megabyte"; it + ;; should be translated to the corresponding + ;; abbreviation. + (G_ "~:[~,1h MB would be downloaded:~%~;~]")) + (null? download) + download-size) + (format (current-error-port) "~{ ~a~%~}" + (map (compose colorized-store-item substitutable-path) + download))) + (begin + (format (current-error-port) + (highlight + (N_ "~:[The following file would be downloaded:~%~;~]" + "~:[The following files would be downloaded:~%~;~]" + (length download))) + (null? download)) + (format (current-error-port) "~{ ~a~%~}" + (map (compose colorized-store-item substitutable-path) + download)))) (format (current-error-port) (N_ "~:[The following graft would be made:~%~{ ~a~%~}~;~]" "~:[The following grafts would be made:~%~{ ~a~%~}~;~]" @@ -1094,21 +1101,28 @@ (define display-download-size? (map colorized-store-item build))) (cond ((>= verbosity 2) (if display-download-size? - (format (current-error-port) - ;; TRANSLATORS: "MB" is for "megabyte"; it should be - ;; translated to the corresponding abbreviation. - (G_ "~:[~,1h MB will be downloaded:~%~{ ~a~%~}~;~]") - (null? download) - download-size - (map (compose colorized-store-item substitutable-path) - download)) - (format (current-error-port) - (N_ "~:[The following file will be downloaded:~%~{ ~a~%~}~;~]" - "~:[The following files will be downloaded:~%~{ ~a~%~}~;~]" - (length download)) - (null? download) - (map (compose colorized-store-item substitutable-path) - download))) + (begin + (format (current-error-port) + (highlight + ;; TRANSLATORS: "MB" is for "megabyte"; it + ;; should be translated to the corresponding + ;; abbreviation. + (G_ "~:[~,1h MB will be downloaded:~%~;~]")) + (null? download) + download-size) + (format (current-error-port) "~{ ~a~%~}" + (map (compose colorized-store-item substitutable-path) + download))) + (begin + (format (current-error-port) + (highlight + (N_ "~:[The following file will be downloaded:~%~;~]" + "~:[The following files will be downloaded:~%~;~]" + (length download))) + (null? download)) + (format (current-error-port) "~{ ~a~%~}" + (map (compose colorized-store-item substitutable-path) + download)))) (format (current-error-port) (N_ "~:[The following graft will be made:~%~{ ~a~%~}~;~]" "~:[The following grafts will be made:~%~{ ~a~%~}~;~]" -- 2.34.0