raco pkg: don't treat "info.rkt" as a conflict
Even though "info.rkt" files are in collections, `raco setup' treats them in a directory-specific way --- and that's necessary for specifying things like `compile-omit-files' in a collection splice.
This commit is contained in:
parent
f364871e7c
commit
332c863e78
|
@ -1807,7 +1807,16 @@
|
||||||
(define-values (base name dir?) (split-path f))
|
(define-values (base name dir?) (split-path f))
|
||||||
(cond
|
(cond
|
||||||
[(eq? 'relative base) s]
|
[(eq? 'relative base) s]
|
||||||
[(regexp-match? #rx#"[.](?:rkt|ss)$" (path-element->bytes name))
|
[else
|
||||||
|
(define bstr (path-element->bytes name))
|
||||||
|
(cond
|
||||||
|
[(or (equal? #"info.rkt" bstr)
|
||||||
|
(equal? #"info.ss" bstr))
|
||||||
|
;; don't count "info.rkt" as a conflict, because
|
||||||
|
;; splices may need their own "info.rkt"s, and
|
||||||
|
;; `raco setup' can handle that
|
||||||
|
s]
|
||||||
|
[(regexp-match? #rx#"[.](?:rkt|ss)$" bstr)
|
||||||
(try-path s f)]
|
(try-path s f)]
|
||||||
[(regexp-match? #rx#"_(?:rkt|ss)[.]zo$" (path-element->bytes name))
|
[(regexp-match? #rx#"_(?:rkt|ss)[.]zo$" (path-element->bytes name))
|
||||||
(define-values (dir-base dir-name dir?) (split-path base))
|
(define-values (dir-base dir-name dir?) (split-path base))
|
||||||
|
@ -1821,7 +1830,7 @@
|
||||||
(path-element->bytes name)
|
(path-element->bytes name)
|
||||||
#".rkt"))))]
|
#".rkt"))))]
|
||||||
[else s])]
|
[else s])]
|
||||||
[else s])]))))
|
[else s])])]))))
|
||||||
|
|
||||||
(define (pkg-catalog-update-local #:catalog-file [catalog-file (db:current-pkg-catalog-file)]
|
(define (pkg-catalog-update-local #:catalog-file [catalog-file (db:current-pkg-catalog-file)]
|
||||||
#:quiet? [quiet? #f]
|
#:quiet? [quiet? #f]
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
(if sep? (cons (mk-sep lbl) l) l))]))))
|
(if sep? (cons (mk-sep lbl) l) l))]))))
|
||||||
|
|
||||||
(define (make-start-page all?)
|
(define (make-start-page all?)
|
||||||
(let* ([recs (find-relevant-directory-records '(scribblings))]
|
(let* ([recs (find-relevant-directory-records '(scribblings) 'all-available)]
|
||||||
[infos (map get-info/full (map directory-record-path recs))]
|
[infos (map get-info/full (map directory-record-path recs))]
|
||||||
[main-dirs (parameterize ([current-library-collection-paths
|
[main-dirs (parameterize ([current-library-collection-paths
|
||||||
(list (find-collects-dir))])
|
(list (find-collects-dir))])
|
||||||
|
|
3
collects/tests/pkg/test-pkgs/pkg-test1/data/info.rkt
Normal file
3
collects/tests/pkg/test-pkgs/pkg-test1/data/info.rkt
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
#lang setup/infotab
|
||||||
|
|
||||||
|
(define name "Also Data")
|
Loading…
Reference in New Issue
Block a user