<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <HEAD> <TITLE> [Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) </TITLE> <LINK REL="Index" HREF="index.html" > <LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3964%5D%20Fix%20partition%20numbering%20on%0A%20GPT%20%28mga%233091%29&In-Reply-To=%3C4F7EAFDF.2090105%40gmail.com%3E"> <META NAME="robots" CONTENT="index,nofollow"> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="013944.html"> <LINK REL="Next" HREF="013951.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)</H1> <B>Guillaume Rousse</B> <A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5Bsoft-commits%5D%20%5B3964%5D%20Fix%20partition%20numbering%20on%0A%20GPT%20%28mga%233091%29&In-Reply-To=%3C4F7EAFDF.2090105%40gmail.com%3E" TITLE="[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091)">guillomovitch at gmail.com </A><BR> <I>Fri Apr 6 10:57:03 CEST 2012</I> <P><UL> <LI>Previous message: <A HREF="013944.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) </A></li> <LI>Next message: <A HREF="013951.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#13945">[ date ]</a> <a href="thread.html#13945">[ thread ]</a> <a href="subject.html#13945">[ subject ]</a> <a href="author.html#13945">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>Le 06/04/2012 10:53, Thierry Vignaud a écrit : ><i> On 6 April 2012 10:34, Guillaume Rousse<<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">guillomovitch at gmail.com</A>> wrote: </I>>><i> Anyway, allocating the list content in a single pass seems simpler to </I>>><i> understand for me. I'd rather use something as: </I>>><i> </I>>><i> # create an exhaustive list including %parts content if existing </I>>><i> # for given partition number, a default structure otherwise </I>>><i> my @pt = map { </I>>><i> $parts{$_} ? $parts{$_} : { part_number => $_ } </I>>><i> } 1..$nb_primary; </I>><i> </I>><i> even simpler: </I>><i> $parts{$_} || { part_number => $_ } </I>caramba :) </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="013944.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) </A></li> <LI>Next message: <A HREF="013951.html">[Mageia-dev] [soft-commits] [3964] Fix partition numbering on GPT (mga#3091) </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#13945">[ date ]</a> <a href="thread.html#13945">[ thread ]</a> <a href="subject.html#13945">[ subject ]</a> <a href="author.html#13945">[ author ]</a> </LI> </UL> <hr> <a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev mailing list</a><br> </body></html>