[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)
Thierry Vignaud
thierry.vignaud at gmail.com
Fri Apr 6 10:53:32 CEST 2012
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 => $_ }
More information about the Mageia-dev
mailing list