me
/
guix
Archived
1
0
Fork 0

guix package: Do not say "nothing to do" upon rollback & co.

Previously, "guix package --switch-generations=4" or similar would print
"nothing to do".

* guix/scripts/package.scm (process-actions): Do not warn about "nothing
to do" when one of %ACTIONS is requested.
master
Ludovic Courtès 2021-06-13 23:46:17 +02:00
parent d06cec625d
commit 0294cfc25a
No known key found for this signature in database
GPG Key ID: 090B11993D9AEBB5
1 changed files with 4 additions and 1 deletions

View File

@ -1044,7 +1044,10 @@ processed, #f otherwise."
(warn-about-old-distro)
(when (and (null? files) (manifest-transaction-null? trans))
(when (and (null? files) (manifest-transaction-null? trans)
(not (any (match-lambda
((key . _) (assoc-ref %actions key)))
opts)))
;; We can reach this point because the user did not specify any action
;; (as in "guix package"), did not specify any package (as in "guix
;; install"), or because there's nothing to upgrade (as when running