[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] profiles: Report about upgrades.
From: |
Ludovic Courtès |
Subject: |
Re: [PATCH] profiles: Report about upgrades. |
Date: |
Sat, 30 Aug 2014 21:56:18 +0200 |
User-agent: |
Gnus/5.130011 (Ma Gnus v0.11) Emacs/24.3 (gnu/linux) |
Alex Kost <address@hidden> skribis:
> + (let* ((remove (manifest-matching-entries
> + manifest (manifest-transaction-remove transaction)))
> + (install/upgrade (manifest-transaction-install transaction))
> + (install '())
> + (upgrade (append-map
> + (lambda (entry)
> + (let ((matching
> + (manifest-matching-entries
> + manifest
> + (list (manifest-pattern
> + (name (manifest-entry-name entry))
> + (output (manifest-entry-output
> entry)))))))
> + (when (null? matching)
> + (set! install (cons entry install)))
> + matching))
> + install/upgrade)))
Somehow I had overlooked the ‘set!’ here. ;-) I’ve just added an
auxiliary procedure, ‘manifest-transaction-effects’, which does that in
a functional way. Let me know if there’s anything wrong.
Ludo’.
- Re: [PATCH] Emacs interface for Guix, (continued)
- Re: [PATCH] Emacs interface for Guix, Alex Kost, 2014/08/12
- Re: [PATCH] Emacs interface for Guix, Ludovic Courtès, 2014/08/12
- Re: [PATCH] Emacs interface for Guix, Alex Kost, 2014/08/13
- Re: [PATCH] Emacs interface for Guix, Ludovic Courtès, 2014/08/13
- Re: [PATCH] Emacs interface for Guix, Alex Kost, 2014/08/13
- Re: [PATCH] Emacs interface for Guix, Alex Kost, 2014/08/15
- Re: [PATCH] Emacs interface for Guix, Ludovic Courtès, 2014/08/16
- [PATCH] manifest-transaction, Alex Kost, 2014/08/16
- [PATCH] profiles: Report about upgrades., Alex Kost, 2014/08/20
- Re: [PATCH] profiles: Report about upgrades., Ludovic Courtès, 2014/08/23
- Re: [PATCH] profiles: Report about upgrades.,
Ludovic Courtès <=
- Re: [PATCH] profiles: Report about upgrades., Alex Kost, 2014/08/31
- Re: [PATCH] profiles: Report about upgrades., Ludovic Courtès, 2014/08/31
- Re: [PATCH] profiles: Report about upgrades., Jason Self, 2014/08/31
- Re: [PATCH] Emacs interface for Guix, Ludovic Courtès, 2014/08/16
- Re: [PATCH] Emacs interface for Guix, Alex Kost, 2014/08/16
- Re: [PATCH] Emacs interface for Guix, Ludovic Courtès, 2014/08/20
- Re: Emacs interface for Guix, Alex Kost, 2014/08/20
- Re: Emacs interface for Guix, Ludovic Courtès, 2014/08/22
- Re: Emacs interface for Guix, Alex Kost, 2014/08/22
- Re: Emacs interface for Guix, Ludovic Courtès, 2014/08/27