[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: guix-package --roll-back
From: |
Nikita Karetnikov |
Subject: |
Re: guix-package --roll-back |
Date: |
Tue, 01 Jan 2013 08:57:42 -0500 |
>> + (match:substring (regexp-exec (profile-rx profile)
>> + (basename (readlink profile))) 1))
> Instead write:
> (and=> (regexp-exec ...)
> (cut match:substring <> 1))
> So that the thing returns #f when there are is no associated profile
> number. OTOH, does that ever occur?
I doubt so, but I also think that it would be better to keep 'and=>' to
prevent possible problems.
> It should be based on rename(2) to be atomic. See the ‘switchLink’
> function in Nix for how to do it.
Could you elaborate? Should I call C from Guile?
Nikita
pgpQQdH7YdcMA.pgp
Description: PGP signature
- Re: guix-package --roll-back,
Nikita Karetnikov <=
- Re: guix-package --roll-back, Nikita Karetnikov, 2013/01/03
- Re: guix-package --roll-back, Ludovic Courtès, 2013/01/03
- Re: guix-package --roll-back, Nikita Karetnikov, 2013/01/04
- Re: guix-package --roll-back, Ludovic Courtès, 2013/01/05
- Re: guix-package --roll-back, Nikita Karetnikov, 2013/01/09
- Re: guix-package --roll-back, Nikita Karetnikov, 2013/01/10
- Re: guix-package --roll-back, Ludovic Courtès, 2013/01/10
- Re: guix-package --roll-back, Nikita Karetnikov, 2013/01/11
- Re: guix-package --roll-back, Ludovic Courtès, 2013/01/11