raco pkg: fix path problems with updating a clone-linked package
This commit is contained in:
parent
1cf985031d
commit
9c75238cf2
|
@ -295,7 +295,7 @@
|
||||||
" Your current installation is a directory link, and the directory might\n"
|
" Your current installation is a directory link, and the directory might\n"
|
||||||
" be a Git repostory checkout, but the package system doesn't know that.\n"
|
" be a Git repostory checkout, but the package system doesn't know that.\n"
|
||||||
" If so, try\n"
|
" If so, try\n"
|
||||||
" cd " (simple-form-path
|
" cd " (simplify-path
|
||||||
(path->complete-path (cadr current-orig-pkg) (pkg-installed-dir)))
|
(path->complete-path (cadr current-orig-pkg) (pkg-installed-dir)))
|
||||||
"\n"
|
"\n"
|
||||||
" raco pkg update --clone . <repository-URL>")]
|
" raco pkg update --clone . <repository-URL>")]
|
||||||
|
|
|
@ -1052,7 +1052,10 @@
|
||||||
(if (eq? 'clone (car orig-pkg))
|
(if (eq? 'clone (car orig-pkg))
|
||||||
(values (caddr orig-pkg)
|
(values (caddr orig-pkg)
|
||||||
'clone
|
'clone
|
||||||
(enclosing-path-for-repo (caddr orig-pkg) (cadr orig-pkg)))
|
(enclosing-path-for-repo (caddr orig-pkg)
|
||||||
|
(path->complete-path
|
||||||
|
(cadr orig-pkg)
|
||||||
|
(pkg-installed-dir))))
|
||||||
;; It would be better if the type were preseved
|
;; It would be better if the type were preseved
|
||||||
;; from install time, but we always make the
|
;; from install time, but we always make the
|
||||||
;; URL unambigious:
|
;; URL unambigious:
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
(define-values (host port repo branch path)
|
(define-values (host port repo branch path)
|
||||||
(split-git-or-hub-url (string->url url-str)))
|
(split-git-or-hub-url (string->url url-str)))
|
||||||
(let loop ([path path]
|
(let loop ([path path]
|
||||||
[in-repo-dir in-repo-dir])
|
[in-repo-dir (simplify-path in-repo-dir)])
|
||||||
(cond
|
(cond
|
||||||
[(null? path) in-repo-dir]
|
[(null? path) in-repo-dir]
|
||||||
[else
|
[else
|
||||||
|
|
Loading…
Reference in New Issue
Block a user