Patching parted

The measurement has to be set to megabyte to get an accurate output of partition and harddisk sizes. This is done by the following patch:
diff -r ./libparted/exception.c ../parted-1.8.7/libparted/exception.c
131,145c131,145
< //    if (e->type == PED_EXCEPTION_BUG)
< //            fprintf (stderr,
< //                    _("A bug has been detected in GNU Parted.  "
< //                    "Refer to the web site of parted "
< //                    "http://www.gnu.org/software/parted/parted.html "
< //                    "for more informations of what could be useful "
< //                    "for bug submitting!  "
< //                    "Please email a bug report to "
< //                    "bug-parted@gnu.org containing at least the "
< //                    "version (%s) and the following message:  "),
< //                    VERSION);
< //    else
< //            fprintf (stderr, "%s: ",
< //                     ped_exception_get_type_string (e->type));
< //    fprintf (stderr, "%s\n", e->message);
---
>       if (e->type == PED_EXCEPTION_BUG)
>               fprintf (stderr,
>                       _("A bug has been detected in GNU Parted.  "
>                       "Refer to the web site of parted "
>                       "http://www.gnu.org/software/parted/parted.html "
>                       "for more informations of what could be useful "
>                       "for bug submitting!  "
>                       "Please email a bug report to "
>                       "bug-parted@gnu.org containing at least the "
>                       "version (%s) and the following message:  "),
>                       VERSION);
>       else
>               fprintf (stderr, "%s: ",
>                        ped_exception_get_type_string (e->type));
>       fprintf (stderr, "%s\n", e->message);
diff -r ./libparted/unit.c ../parted-1.8.7/libparted/unit.c
70c70
< static PedUnit default_unit = PED_UNIT_MEGABYTE;
---
> static PedUnit default_unit = PED_UNIT_COMPACT;



root 2015-09-06