diff options
-rw-r--r-- | guix/scripts/package.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/guix/scripts/package.scm b/guix/scripts/package.scm index 6db83807af..694959d326 100644 --- a/guix/scripts/package.scm +++ b/guix/scripts/package.scm @@ -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 |