[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/system-packages f12f051 06/10: get-command: Don't hardc
From: |
Stefan Monnier |
Subject: |
[elpa] externals/system-packages f12f051 06/10: get-command: Don't hardcode && logic |
Date: |
Tue, 16 Mar 2021 09:44:28 -0400 (EDT) |
branch: externals/system-packages
commit f12f05122304a4e4be83858c5726da5c1e32c82e
Author: Štěpán Němec <stepnem@gmail.com>
Commit: Štěpán Němec <stepnem@gmail.com>
get-command: Don't hardcode && logic
The commands are static and user configurable, so this DWIMish parsing
makes little sense, and actually makes customization difficult when
user prefers other semantics (e.g., "command1; command2" to _not_
depend on success).
---
system-packages.el | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/system-packages.el b/system-packages.el
index ab0b104..ba181da 100644
--- a/system-packages.el
+++ b/system-packages.el
@@ -55,7 +55,7 @@
(install . "guix package -i")
(search . "guix package -s")
(uninstall . "guix package -r")
- (update . ("guix package --upgrade"))
+ (update . "guix package --upgrade")
(clean-cache . "guix gc")
(log . nil)
(get-info . nil)
@@ -74,7 +74,7 @@
(install . "nix-env -i")
(search . "nix search")
(uninstall . "nix-env -e")
- (update . ("nix-env -u" ))
+ (update . "nix-env -u")
(clean-cache . "nix-collect-garbage")
(log . nil)
(get-info . nil)
@@ -93,7 +93,7 @@
(install . "brew install")
(search . "brew search")
(uninstall . "brew uninstall")
- (update . ("brew update" "brew upgrade"))
+ (update . "brew update && brew upgrade")
(clean-cache . "brew cleanup")
(log . nil)
(get-info . nil)
@@ -111,7 +111,7 @@
(install . "port install")
(search . "port search")
(uninstall . "port uninstall")
- (update . ("port sync" "port upgrade outdated"))
+ (update . "port sync && port upgrade outdated")
(clean-cache . "port clean --all")
(log . "port log")
(get-info . "port info")
@@ -149,7 +149,7 @@
(install . "apt-get install")
(search . "apt-cache search")
(uninstall . "apt-get --purge remove")
- (update . ("apt-get update" "apt-get upgrade"))
+ (update . "apt-get update && apt-get upgrade")
(clean-cache . "apt-get clean")
(log . "cat /var/log/dpkg.log")
(get-info . "dpkg -s")
@@ -167,7 +167,7 @@
(install . "aptitude install")
(search . "aptitude search")
(uninstall . "aptitude remove")
- (update . ("apt update" "aptitude safe-upgrade"))
+ (update . "apt update && aptitude safe-upgrade")
(clean-cache . "aptitude clean")
(log . "cat /var/log/dpkg.log")
(get-info . "aptitude show")
@@ -224,7 +224,7 @@
(install . "dnf install")
(search . "dnf search")
(uninstall . "dnf remove")
- (update . ("dnf upgrade"))
+ (update . "dnf upgrade")
(clean-cache . "dnf clean all")
(log . "dnf history")
(get-info . "rpm -qi")
@@ -264,7 +264,7 @@
(install . "xbps-install")
(search . "xbps-query -Rs")
(uninstall . "xbps-remove -R")
- (update . ("xbps-install -Su"))
+ (update . "xbps-install -Su")
(clean-cache . "xbps-remove -O")
(log . nil)
(get-info . "xbps-query")
@@ -278,7 +278,7 @@
(list-dependencies-of . "xbps-query -x")
(noconfirm . nil))))
"An alist of package manager commands.
-The key is the package manager and values (usually) commands.")
+The key is the package manager and value (usually) the shell command to run.")
(put 'system-packages-supported-package-managers 'risky-local-variable t)
(define-obsolete-variable-alias 'system-packages-packagemanager
@@ -340,9 +340,6 @@ of passing additional arguments to the package manager."
system-packages-supported-package-managers)))))))
(unless command
(error (format "%S not supported in %S" action
system-packages-package-manager)))
- (unless (listp command)
- (setq command (list command)))
- (setq command (mapconcat #'identity command " && "))
(setq command (mapconcat #'identity (list command pack) " "))
(when noconfirm
(setq args (concat args (and pack " ") noconfirm)))
- [elpa] externals/system-packages updated (3ad6d52 -> 05add2f), Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages c6fa665 04/10: pacman -Ql: add the -q flag to get rid of the package name prefix, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages 4c491ca 01/10: README: capitalize Emacs (checkdoc warning), Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages eeff5e3 02/10: system-packages-package-manager: Fix doc string, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages 45782f7 03/10: Make command prompts more consistent, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages 2862c5b 05/10: change-log, owning-file, owning-file-remote: New commands, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages cf64fdb 07/10: Merge branch 'dont-hardcode-and' [33], Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages 92c58d9 09/10: Update copyright, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages f12f051 06/10: get-command: Don't hardcode && logic,
Stefan Monnier <=
- [elpa] externals/system-packages 449dcdf 08/10: Replace '%p' in commands with the package name, Stefan Monnier, 2021/03/16
- [elpa] externals/system-packages 05add2f 10/10: Update copyright, Stefan Monnier, 2021/03/16