pkg/path: fix for when the argument = a pkgs install directory
This commit is contained in:
parent
7a1fe139a5
commit
40027e8b1d
|
@ -21,8 +21,10 @@
|
|||
|
||||
(check-equal? (path->pkg (build-path (find-pkgs-dir) "pkgs.rktd"))
|
||||
#f)
|
||||
(check-equal? (path->pkg (find-pkgs-dir))
|
||||
#f)
|
||||
|
||||
(check-equal? (call-with-values
|
||||
(lambda () (path->pkg+subpath+collect (collection-file-path "serve-catalog.rkt" "distro-build")))
|
||||
list)
|
||||
(list "distro-build" (build-path "serve-catalog.rkt") "distro-build")))
|
||||
(list "distro-build-server" (build-path "serve-catalog.rkt") "distro-build")))
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
(normal-case-path
|
||||
(simplify-path (path->complete-path p)))))
|
||||
(define (sub-path? < p d)
|
||||
(and ((length d) . <= . (length p))
|
||||
(and ((length d) . < . (length p))
|
||||
(for/and ([de (in-list d)]
|
||||
[pe (in-list p)])
|
||||
(equal? de pe))))
|
||||
|
|
Loading…
Reference in New Issue
Block a user