[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/04: guix system: Don't warn about old distros for "guix system init".
From: |
Ludovic Courtès |
Subject: |
01/04: guix system: Don't warn about old distros for "guix system init". |
Date: |
Sun, 21 May 2017 07:48:00 -0400 (EDT) |
civodul pushed a commit to branch version-0.13.0
in repository guix.
commit 8a29dc07a4b62ee480490137592cf02c33b1799f
Author: Ludovic Courtès <address@hidden>
Date: Sun May 21 11:49:07 2017 +0200
guix system: Don't warn about old distros for "guix system init".
* guix/scripts/system.scm (process-action): Don't call
'warn-about-old-distro' when ACTION is 'init' or 'build'.
---
guix/scripts/system.scm | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/guix/scripts/system.scm b/guix/scripts/system.scm
index 6977a57..ede158c 100644
--- a/guix/scripts/system.scm
+++ b/guix/scripts/system.scm
@@ -847,8 +847,10 @@ resulting from command-line parsing."
((shepherd-graph)
(export-shepherd-graph os (current-output-port)))
(else
- (warn-about-old-distro #:suggested-command
- "guix system reconfigure")
+ (unless (memq action '(build init))
+ (warn-about-old-distro #:suggested-command
+ "guix system reconfigure"))
+
(perform-action action os
#:dry-run? dry?
#:derivations-only? (assoc-ref opts