Skip to content

Commit

Permalink
raco setup: fix shared-file cleanup on uninstall
Browse files Browse the repository at this point in the history
The tidying step of `raco setup` looked for the "shares.rktd"
receipt file in the wrong directory.
  • Loading branch information
mflatt committed May 19, 2015
1 parent 7067559 commit 235bd4d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions racket/collects/setup/setup-core.rkt
Expand Up @@ -1658,13 +1658,17 @@
(unless (avoid-main-installation)
(tidy-libs #f
(find-target-dir)
(find-lib-dir)
(if receipt-at-dest?
(find-target-dir)
(find-lib-dir))
installed-libs
ccs-to-compile))
(when (make-user)
(tidy-libs #t
(find-user-target-dir)
(find-user-lib-dir)
(if receipt-at-dest?
(find-user-target-dir)
(find-user-lib-dir))
installed-libs
ccs-to-compile)))
(for-each fixup-lib (hash-keys dests)))
Expand Down Expand Up @@ -1713,9 +1717,9 @@
(write-receipt-hash receipt-path ht)))
lib-key))

(define (tidy-libs user? target-dir lib-dir installed-libs ccs-to-compile)
(clean-previous-delete-failures lib-dir path->relative-string/*)
(define receipt-path (build-path lib-dir receipt-file))
(define (tidy-libs user? target-dir receipt-dir installed-libs ccs-to-compile)
(clean-previous-delete-failures receipt-dir path->relative-string/*)
(define receipt-path (build-path receipt-dir receipt-file))
(define ht (read-receipt-hash receipt-path))
(define ht2 (for/fold ([ht (hash)]) ([(k v) (in-hash ht)])
(define coll-path (and (pair? v)
Expand Down

0 comments on commit 235bd4d

Please sign in to comment.