scripts: GC hint suggests 'guix gc -d 1m'.

* guix/scripts.scm (warn-about-disk-space): Suggest 'guix gc -d'.
This commit is contained in:
Ludovic Courtès 2019-04-06 23:19:36 +02:00
parent 96b8c2e6e2
commit 9c074f61ef
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 3 additions and 7 deletions

View File

@ -201,16 +201,12 @@ available."
(when (< ratio threshold) (when (< ratio threshold)
(warning (G_ "only ~,1f% of free space available on ~a~%") (warning (G_ "only ~,1f% of free space available on ~a~%")
(* ratio 100) (%store-prefix)) (* 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: generations and collecting garbage, along these lines:
@example @example
guix package -p ~s --delete-generations=1m guix gc --delete-generations=1m
guix gc
@end example\n") @end example\n")
profile)) profile)))))
(display-hint (G_ "Consider running @command{guix gc} to free
space."))))))
;;; scripts.scm ends here ;;; scripts.scm ends here