mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Avoid duplicate source packages in 'package-alist'
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Remove all other source packages before installing the new package description.
This commit is contained in:
parent
5b8f165f75
commit
0b77909cac
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ documentation and marking the package as installed."
|
|||
;; Remove any previous instance of PKG-DESC from `package-alist'
|
||||
(let ((pkgs (assq (package-desc-name pkg-desc) package-alist)))
|
||||
(when pkgs
|
||||
(setf (cdr pkgs) (delq pkg-desc (cdr pkgs)))))
|
||||
(setf (cdr pkgs) (seq-remove #'package-vc-p (cdr pkgs)))))
|
||||
|
||||
;; In case the package was installed directly from source, the
|
||||
;; dependency list wasn't know beforehand, and they might have
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue