[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generation 0
From: |
Ludovic Courtès |
Subject: |
Re: Generation 0 |
Date: |
Wed, 25 Sep 2013 21:24:09 +0200 |
User-agent: |
Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) |
Nikita Karetnikov <address@hidden> skribis:
>>> What about these patches? Should the first patch also test the
>>> following case?
>>>
>>> + (let ((numbers (generation-numbers profile)))
>>> + (if (equal? numbers '(0))
>>> + (exit 1)
>>> + (for-each list-generation numbers))))
>
>> The first patch below already contains that snippet, so I’m not sure
>> what you mean.
>
> There are two cases:
>
> 1. A generation does not exist.
>
> 2. The profile points to the zeroth generation, and there are no other
> generations.
>
> ‘tests/guix-package.sh’ tests the first case. Should we test the second
> case too? What would be the best way to do so?
The second case is valid. Thus it’s OK for --list-generations to not
print anything, but it must exit with 0.
Likewise, --delete-generations should do nothing and exit with 0 with
the only generation that would be deleted is Generation 0.
Does it make sense?
Ludo’.
- [PATCH] guix package: Show which generation is the current one. (was: Generation 0), (continued)
- [PATCH] guix package: Show which generation is the current one. (was: Generation 0), Nikita Karetnikov, 2013/09/24
- Re: [PATCH] guix package: Show which generation is the current one., Ludovic Courtès, 2013/09/24
- Re: [PATCH] guix package: Show which generation is the current one., Nikita Karetnikov, 2013/09/24
- Re: [PATCH] guix package: Show which generation is the current one., Ludovic Courtès, 2013/09/24
- Re: [PATCH] guix package: Show which generation is the current one., Nikita Karetnikov, 2013/09/24
- Re: [PATCH] guix package: Show which generation is the current one., Ludovic Courtès, 2013/09/25
- Re: Generation 0, Ludovic Courtès, 2013/09/24
- Re: Generation 0, Nikita Karetnikov, 2013/09/24
- Re: Generation 0, Ludovic Courtès, 2013/09/25
- Re: Generation 0, Nikita Karetnikov, 2013/09/25
- Re: Generation 0,
Ludovic Courtès <=
- Re: Generation 0, Nikita Karetnikov, 2013/09/25
- Re: Generation 0, Ludovic Courtès, 2013/09/26
Re: [PATCH] guix package: Add '--delete-generations'., Ludovic Courtès, 2013/09/22
Re: [PATCH] guix package: Add '--delete-generations'., Nikita Karetnikov, 2013/09/25
Re: [PATCH] guix package: Add '--delete-generations'., Ludovic Courtès, 2013/09/25