From 8cffe5713d9331f2e434ca6f6ef41d87e2ecd84c Mon Sep 17 00:00:00 2001 From: toy <toy> Date: Tue, 5 Aug 2003 16:31:24 +0000 Subject: [PATCH] In %ENUMERATE-FILES, also match if the file has no explicit version (version NIL) and we're looking for version :NEWEST, since that's what no explicit version means. --- code/filesys.lisp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/code/filesys.lisp b/code/filesys.lisp index 28b4cd5d8..b8685e1e2 100644 --- a/code/filesys.lisp +++ b/code/filesys.lisp @@ -6,7 +6,7 @@ ;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; (ext:file-comment - "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.75 2003/06/11 16:40:02 toy Exp $") + "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/filesys.lisp,v 1.76 2003/08/05 16:31:24 toy Exp $") ;;; ;;; ********************************************************************** ;;; @@ -673,10 +673,16 @@ (let ((*ignore-wildcards* t)) (extract-name-type-and-version file 0 (length file))) + ;; Match also happens if the file has + ;; no explicit version and we're asking + ;; for version :NEWEST, since that's + ;; what no version means. (when (and (components-match file-name name) (components-match file-type type) - (components-match file-version - version)) + (or (components-match file-version + version) + (and (eq file-version nil) + (eq version :newest)))) (funcall function (concatenate 'string directory -- GitLab