From 1be510f9529cb082f802408b472a77d074b394c0 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Sun, 14 Apr 2013 13:46:12 +0000 Subject: Add zarb MLs html archives --- zarb-ml/mageia-dev/2012-April/013940.html | 121 ++++++++++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 zarb-ml/mageia-dev/2012-April/013940.html (limited to 'zarb-ml/mageia-dev/2012-April/013940.html') diff --git a/zarb-ml/mageia-dev/2012-April/013940.html b/zarb-ml/mageia-dev/2012-April/013940.html new file mode 100644 index 000000000..29f5e474e --- /dev/null +++ b/zarb-ml/mageia-dev/2012-April/013940.html @@ -0,0 +1,121 @@ + + + + [Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) + + + + + + + + + +

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

+ Thierry Vignaud + thierry.vignaud at gmail.com +
+ Fri Apr 6 09:58:06 CEST 2012 +

+
+ +
On 6 April 2012 00:00,  <root at mageia.org> wrote:
+> Fix partition numbering on GPT (mga#3091)
+
+(...)
+
+> @@ -27,9 +28,20 @@
+>              $p{start} = $5;
+>              $p{size} = $7;
+>          }
+> -        \%p;
+> +        $p{part_number} => \%p;
+>      } c::get_disk_partitions($hd->{file});
+>
+> +    my @pt = map {
+> +	my $part_number = $_;
+> +	if ($parts{$part_number}) {
+> +	    $parts{$part_number};
+> +	} else {
+> +	    my %p;
+> +	    $p{part_number} = $part_number;
+> +	    \%p;
+
+This is simpler & more readable:
+
+{ part_number => $part_number };
+
+anyway it would be maybe simpler go one of the way I attach.
+WDYT?
+
+>     [ @pt ], $info;
+
+
+And this could be better:
+
+    \@pt, $info;
+
+BTW, a "require common" would be needed b/c of common::sync() even
+if all users already loaded it before, for sanity & perl_checker.
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: 1.diff
+Type: application/octet-stream
+Size: 534 bytes
+Desc: not available
+URL: </pipermail/mageia-dev/attachments/20120406/427b6f6a/attachment.obj>
+-------------- next part --------------
+A non-text attachment was scrubbed...
+Name: 2.diff
+Type: application/octet-stream
+Size: 547 bytes
+Desc: not available
+URL: </pipermail/mageia-dev/attachments/20120406/427b6f6a/attachment-0001.obj>
+
+ + + + + + + + + + + + + + + + +
+

+ +
+More information about the Mageia-dev +mailing list
+ -- cgit v1.2.1