[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)

Guillaume Rousse guillomovitch at gmail.com
Fri Apr 6 10:57:03 CEST 2012


Le 06/04/2012 10:53, Thierry Vignaud a écrit :
> On 6 April 2012 10:34, Guillaume Rousse<guillomovitch at gmail.com>  wrote:
>> Anyway, allocating the list content in a single pass seems simpler to
>> understand for me. I'd rather use something as:
>>
>> # create an exhaustive list including %parts content if existing
>> # for given partition number, a default structure otherwise
>> my @pt = map {
>>         $parts{$_} ? $parts{$_} : { part_number =>  $_ }
>>     } 1..$nb_primary;
>
> even simpler:
>         $parts{$_} || { part_number =>  $_ }
caramba :)


More information about the Mageia-dev mailing list