Remove duplicate package descriptions after updating
* lisp/emacs-lisp/package-vc.el (package-vc--unpack-1): Ensure there is always just one instance of a package description in 'package-alist'.
This commit is contained in:
parent
32f51f17c4
commit
228c247e6f
1 changed files with 5 additions and 0 deletions
|
@ -386,6 +386,11 @@ This includes downloading missing dependencies, generating
|
|||
autoloads, generating a package description file (used to
|
||||
identify a package as a source package later on), building
|
||||
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)))))
|
||||
|
||||
;; In case the package was installed directly from source, the
|
||||
;; dependency list wasn't know beforehand, and they might have
|
||||
;; to be installed explicitly.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue