Skip to content
Snippets Groups Projects
Commit 9f29dbc8 authored by rtoy's avatar rtoy
Browse files

Oops. A version of nil, :newest, or :unspecific is ok without a

name.  (But we still have problems with print/read for :newest and
:unspecific.)
parent 6e15c09a
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.95 2005/10/21 18:10:11 rtoy Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.96 2005/10/22 00:33:56 rtoy Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
...@@ -496,7 +496,8 @@ ...@@ -496,7 +496,8 @@
(error "Cannot specify the type without a file: ~S" pathname)) (error "Cannot specify the type without a file: ~S" pathname))
(strings ".") (strings ".")
(strings (unparse-unix-piece type))) (strings (unparse-unix-piece type)))
(when (and version (not name)) (when (and (not (member version '(nil :newest :unspecific)))
(not name))
;; We don't want version without a name, because when we try ;; We don't want version without a name, because when we try
;; to read #p".~*~" back, the name is "", not NIL. ;; to read #p".~*~" back, the name is "", not NIL.
(error "Cannot specify a version without a file: ~S" pathname)) (error "Cannot specify a version without a file: ~S" pathname))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment