From 26531a5e12940eb6edd6344de1809167721148f5 Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Fri, 24 Oct 2014 23:05:11 -0400 Subject: [PATCH] Update version check of ~/.spacemacs Now the check pass if the major version of ~/.spacemacs is the same as the major version expected by Spacemacs --- core/contribsys.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/core/contribsys.el b/core/contribsys.el index 285f279b6..2670a4a29 100644 --- a/core/contribsys.el +++ b/core/contribsys.el @@ -57,12 +57,13 @@ is its path.") "Return t if the check pass, otherwise return nil and display an error message. -The check pass if the expected version stored in -`spacemacs-dotspacemacs-version' is less or equal to the current version of -~/.spacemacs +The check pass if the expected major version stored in +`spacemacs-dotspacemacs-version' is the same as the expected major version from +spacemacs. " (if (and (boundp 'dotspacemacs-version) - (not (version< dotspacemacs-version spacemacs-dotspacemacs-version))) + (and (equal (car (version-to-list dotspacemacs-version)) + (car (version-to-list spacemacs-dotspacemacs-version))))) t (defun display-startup-echo-area-message () "Change the default welcome message of minibuffer to another one."