Ludovic Courtès ccda88a070
package: Honor '--dry-run' when target profile is already in store.
Fixes <https://issues.guix.gnu.org/53267>.
Reported by Tirifto <tirifto@posteo.cz>.

Regression introduced in 65ffb9388c1c3d870cb07e4cb3ef12c9ac06a161.

In the (unlikely) case where the profile we're targeting with "guix
upgrade -n" or similar is already built, a new profile generation would
be created and linked to despite the use of '-n'.  This is because
65ffb9388c1c3d870cb07e4cb3ef12c9ac06a161 assumed that dry-run behavior
would be handled solely by the build handler, which is not the case when
there's nothing to build.

* guix/scripts/package.scm (build-and-use-profile): Reintroduce #:dry-run?
and honor it.
(process-actions): Pass #:dry-run? to 'build-and-use-profile'.
* tests/guix-package-net.sh: Add test.
2022-01-19 22:07:54 +01:00
..
2022-01-17 11:47:09 -05:00
2022-01-16 23:56:56 +01:00
2022-01-01 15:23:24 +01:00
2021-09-21 15:15:52 +02:00
2021-04-12 18:42:22 +02:00
2022-01-10 11:44:31 -05:00
2021-08-12 12:34:13 +02:00
2021-12-23 08:59:44 -05:00
2021-05-11 12:49:53 +02:00