Skip to content

Commit a04238d

Browse files
authored
Merge pull request #1209 from radian-software/rr-allow-reinstall
Allow M-x straight-use-package already installed
2 parents a277e11 + 834905b commit a04238d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

straight.el

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6206,12 +6206,7 @@ hint about how to install the package permanently.
62066206
Return non-nil when package is initially installed, nil otherwise."
62076207
(interactive
62086208
(list (straight-get-recipe
6209-
(when current-prefix-arg 'interactive) nil
6210-
(let ((installed nil))
6211-
;; Cache keys are :local-repo. We want to compare :package.
6212-
(maphash (lambda (_ v) (push (plist-get v :package) installed))
6213-
straight--repo-cache)
6214-
(lambda (pkg) (not (member pkg installed)))))
6209+
(when current-prefix-arg 'interactive) nil)
62156210
nil nil nil 'interactive))
62166211
;; Do this unconditionally, at the very beginning, because we want
62176212
;; to have caches loaded right away - they're needed even for

0 commit comments

Comments
 (0)