Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

package-archive-priorities ignored when specifying :repo with type: elpa #2832

Open
Niluge-KiWi opened this issue May 27, 2021 · 0 comments
Open

Comments

@Niluge-KiWi
Copy link

My goal is to use melpa stable by default for packages with :type elpa, and use melpa (non stable) for select packages.

The way I tried to do this is to set package-archive-priorities and specify :repo in the receipe of select packages:

(require 'package)
(setq package-archives
      '(("gnu" . "https://elpa.gnu.org/packages/")
	("melpa" . "https://melpa.org/packages/")
	("melpa-stable" . "https://stable.melpa.org/packages/"))
      package-archive-priorities
      '(("gnu" . 5)
	("melpa" . 0)
	("melpa-stable" . 10)))
(package-initialize)

(setq el-get-sources
      '(
       (:name magit :type elpa)
       (:name solarized-theme :type elpa
               :repo ("melpa" . "https://melpa.org/packages/"))))

(el-get 'sync)

Result:

  • magit is correctly installed with melpa-stable: OK
  • solarized-theme is installed with melpa-stable: KO: I would expect it to be installed with melpa archive

Analysis:

(let ((to-install (el-get-elpa-package-id pkg)))
(if have-deps-p
(package-download-transaction (list to-install))
(package-install to-install)))))

(el-get-elpa-package-id 'solarized-theme) returns version 1.3.1 from melpa-stable, ignoring the :repo I defined in the receipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant