fix parsing of planet paths to not add .ss in compact string form

svn: r16056
This commit is contained in:
Matthew Flatt 2009-09-17 22:24:51 +00:00
parent 1c129b829b
commit 70317a24a8

View File

@ -72,7 +72,9 @@
[fullspec (pkg-spec->full-pkg-spec pkg-spec stx)]
[final-path (if (string=? tail "")
"main.ss"
(string-append tail ".ss"))])
(if (regexp-match #rx"[.]" tail)
tail
(string-append tail ".ss")))])
(make-request fullspec final-path '())))]
[_ (raise-syntax-error 'require (format "Illegal PLaneT invocation: ~e" (cdr spec)) stx)]))