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.
(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)