From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:37346) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hCsv0-0006VS-Ko for guix-patches@gnu.org; Sat, 06 Apr 2019 17:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hCsuy-0004hq-Uj for guix-patches@gnu.org; Sat, 06 Apr 2019 17:32:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:33989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hCsuy-0004hI-M1 for guix-patches@gnu.org; Sat, 06 Apr 2019 17:32:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hCsuy-0005Eo-IB for guix-patches@gnu.org; Sat, 06 Apr 2019 17:32:04 -0400 Subject: [bug#35176] [PATCH 5/5] scripts: GC hint suggests 'guix gc -d 1m'. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Sat, 6 Apr 2019 23:31:23 +0200 Message-Id: <20190406213123.27164-5-ludo@gnu.org> In-Reply-To: <20190406213123.27164-1-ludo@gnu.org> References: <20190406213123.27164-1-ludo@gnu.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 35176@debbugs.gnu.org * guix/scripts.scm (warn-about-disk-space): Suggest 'guix gc -d'. --- guix/scripts.scm | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/guix/scripts.scm b/guix/scripts.scm index e4b11d295d..77cbf12350 100644 --- a/guix/scripts.scm +++ b/guix/scripts.scm @@ -201,16 +201,12 @@ available." (when (< ratio threshold) (warning (G_ "only ~,1f% of free space available on ~a~%") (* ratio 100) (%store-prefix)) - (if profile - (display-hint (format #f (G_ "Consider deleting old profile + (display-hint (format #f (G_ "Consider deleting old profile generations and collecting garbage, along these lines: @example -guix package -p ~s --delete-generations=1m -guix gc +guix gc --delete-generations=1m @end example\n") - profile)) - (display-hint (G_ "Consider running @command{guix gc} to free -space.")))))) + profile))))) ;;; scripts.scm ends here -- 2.21.0