some additional sanity checking

svn: r10776
This commit is contained in:
Eli Barzilay 2008-07-15 18:26:12 +00:00
parent 22ac059a81
commit 7d1d8bf7fe

View File

@ -63,7 +63,8 @@
[else #f]))
;; general sanity check, performed once when loaded
(when (>= (string->number (car (regexp-match #rx"^[0-9]+" (version)))) 49)
(unless (and (< (string->number (car (regexp-match #rx"^[0-9]+" (version)))) 49)
(integer? (version->integer version)))
;; When this happens, we got to numbers that can be confused with old version
;; numbers, and the above code should be modified. With the current rate of
;; changes, this should happen in more 150 years. Either programming is