Skip to content

Commit

Permalink
Don't consider /usr/games/pacman a package manager
Browse files Browse the repository at this point in the history
* system-packages.el (system-packages-package-manager): Don't try to
use /usr/games/pacman.
Ref: jwiegley/use-package#1060
  • Loading branch information
skangas committed Aug 5, 2023
1 parent 7a207db commit d1a680e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions system-packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,13 @@ to the command.")
(while managers
(progn
(setq manager (pop managers))
(if (executable-find (symbol-name (car manager)))
(setq managers nil)
(setq manager nil))))
(let ((found (executable-find (symbol-name (car manager)))))
(if (and found
;; The package manager named "pacman" conflicts
;; with the game binary on non-Arch systems.
(not (string-match (rx "games/pacman" eos) found)))
(setq managers nil)
(setq manager nil)))))
(car manager))
"Symbol naming the package manager to use.
See `system-packages-supported-package-managers' for the list of
Expand Down

0 comments on commit d1a680e

Please sign in to comment.