mbox series

[bug#60368,0/2] Allow 'guix refresh' to downgrade packages when asked to

Message ID 20221227221156.25323-1-ludo@gnu.org
Headers show
Series Allow 'guix refresh' to downgrade packages when asked to | expand

Message

Ludovic Courtès Dec. 27, 2022, 10:11 p.m. UTC
Hi Hartmut,

I figured changes from <https://issues.guix.gnu.org/57460> were not
applicable in some cases because of things that guard against
downgrade.

The following patches fix the use case where the user is explicitly
asking for a downgrade, as in:

  guix refresh guile@3.0=2.2.7
  guix refresh -u guile=3.0.0

Previously these wouldn’t do anything.

WDYT?

Ludo’.

Ludovic Courtès (2):
  refresh: Honor user-provided target version and report downgrades.
  upstream: Allow downgrades.

 guix/scripts/refresh.scm | 46 +++++++++++++++++++++++++++-------------
 guix/upstream.scm        | 17 ++++++++++++---
 2 files changed, 45 insertions(+), 18 deletions(-)


base-commit: fd0e69984f25bdf2405cf33b15a8bbb2010a7b85

Comments

Ludovic Courtès Jan. 3, 2023, 11:32 a.m. UTC | #1
Hi Hartmut and all,

Ludovic Courtès <ludo@gnu.org> skribis:

> Hi Hartmut,
>
> I figured changes from <https://issues.guix.gnu.org/57460> were not
> applicable in some cases because of things that guard against
> downgrade.
>
> The following patches fix the use case where the user is explicitly
> asking for a downgrade, as in:
>
>   guix refresh guile@3.0=2.2.7
>   guix refresh -u guile=3.0.0
>
> Previously these wouldn’t do anything.

I went ahead and pushed these:

  11235dd85a refresh: Honor user-provided target version and report downgrades.
  a330bfdf5b upstream: Allow downgrades.

Thanks,
Ludo’.