runtime/option.scm (library-file?): Search for the .scm file.
authorMatt Birkholz <puck@birchwood-abbey.net>
Wed, 25 May 2016 22:09:45 +0000 (15:09 -0700)
committerMatt Birkholz <puck@birchwood-abbey.net>
Wed, 25 May 2016 22:09:45 +0000 (15:09 -0700)
Library-file? is applied to optiondb pathnames with no type, but
system-library-pathname only searches for a matching type.  Add a
"scm" type when searching the path and strip it again when looking for
a loadable.

src/runtime/option.scm

index 5f08f75473d8d4451848b42fd711d96b9bfc2faa..295aae639311d9d9a9779833e5643af0aa6ceb1b 100644 (file)
@@ -82,7 +82,11 @@ USA.
       (error "Cannot locate a load-option database.")))
 
 (define (library-file? library-internal-path)
-  (confirm-pathname (system-library-pathname library-internal-path #f)))
+  (confirm-pathname
+   (pathname-new-type
+    (system-library-pathname (pathname-default-type library-internal-path "scm")
+                            #f)
+    #f)))
 
 (define (confirm-pathname pathname)
   (and (file-loadable? pathname)