Hello community, here is the log from the commit of package parted for openSUSE:Factory checked in at 2014-05-27 11:51:00 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/parted (Old) and /work/SRC/openSUSE:Factory/.parted.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "parted" Changes: -------- --- /work/SRC/openSUSE:Factory/parted/parted.changes 2014-05-10 08:32:00.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.parted.new/parted.changes 2014-05-27 11:51:01.000000000 +0200 @@ -1,0 +2,7 @@ +Tue May 20 10:27:17 UTC 2014 - pu...@suse.com + +- Fix the help text to show *disk* flags instead of partition flags + (bnc#872054): + - add: Fix-help-text-for-disk_-set-toggle.patch + +------------------------------------------------------------------- Old: ---- revert-gpt-add-commands-to-manipulate-pMBR-boot-flag.patch New: ---- Fix-help-text-for-disk_-set-toggle.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ parted.spec ++++++ --- /var/tmp/diff_new_pack.K8x3pu/_old 2014-05-27 11:51:03.000000000 +0200 +++ /var/tmp/diff_new_pack.K8x3pu/_new 2014-05-27 11:51:03.000000000 +0200 @@ -57,6 +57,7 @@ Patch30: libparted-initialize-dasd-part-type.patch Patch31: libparted-use-BLKRRPART-for-DASD.patch.patch Patch32: libparted-copy-pmbr_boot-when-duplicating-GPT-disk.patch +Patch33: Fix-help-text-for-disk_-set-toggle.patch Patch100: parted-fatresize-autoconf.patch Requires: /sbin/udevadm BuildRequires: check-devel @@ -136,6 +137,7 @@ %patch30 -p1 %patch31 -p1 %patch32 -p1 +%patch33 -p1 %patch100 -p1 %build ++++++ Fix-help-text-for-disk_-set-toggle.patch ++++++ >From 3e005b4644d2a97da85c251f93d32d93e94bcccf Mon Sep 17 00:00:00 2001 From: Phillip Susi <ps...@ubuntu.com> Date: Mon, 24 Feb 2014 11:29:43 -0500 Subject: [PATCH] Fix help text for disk_{set,toggle} Fix the help text to show *disk* flags instead of partition flags. --- parted/parted.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) Index: parted-3.1/parted/parted.c =================================================================== --- parted-3.1.orig/parted/parted.c +++ parted-3.1/parted/parted.c @@ -144,6 +144,7 @@ static const char* number_msg = N_( static const char* label_type_msg_start = N_("LABEL-TYPE is one of: "); static const char* flag_msg_start = N_("FLAG is one of: "); +static const char* disk_flag_msg_start = N_("FLAG is one of: "); static const char* unit_msg_start = N_("UNIT is one of: "); static const char* min_or_opt_msg = N_("desired alignment: minimum or optimal"); static const char* part_type_msg = N_("PART-TYPE is one of: primary, logical, " @@ -170,6 +171,7 @@ static const char* copyright_msg = N_( static char* label_type_msg; static char* flag_msg; +static char* disk_flag_msg; static char* unit_msg; static char* mkpart_fs_type_msg; @@ -1845,6 +1847,7 @@ _init_messages () PedFileSystemAlias* fs_alias; PedDiskType* disk_type; PedPartitionFlag part_flag; + PedDiskFlag disk_flag; PedUnit unit; /* flags */ @@ -1863,6 +1866,22 @@ _init_messages () flag_msg = str_list_convert (list); str_list_destroy (list); +/* disk flags */ + first = 1; + list = str_list_create (_(disk_flag_msg_start), NULL); + for (disk_flag = ped_disk_flag_next (0); disk_flag; + disk_flag = ped_disk_flag_next (disk_flag)) { + if (first) + first = 0; + else + str_list_append (list, ", "); + str_list_append (list, + _(ped_disk_flag_get_name (disk_flag))); + } + str_list_append (list, "\n"); + + disk_flag_msg = str_list_convert (list); + str_list_destroy (list); /* units */ first = 1; @@ -2055,7 +2074,7 @@ command_register (commands, command_crea str_list_create ( _("disk_set FLAG STATE change the FLAG on selected device"), NULL), - str_list_create (flag_msg, _(state_msg), NULL), 1)); + str_list_create (disk_flag_msg, _(state_msg), NULL), 1)); command_register (commands, command_create ( str_list_create_unique ("disk_toggle", _("disk_toggle"), NULL), @@ -2064,7 +2083,7 @@ command_register (commands, command_crea _("disk_toggle [FLAG] toggle the state of FLAG on " "selected device"), NULL), - str_list_create (flag_msg, NULL), 1)); + str_list_create (disk_flag_msg, NULL), 1)); command_register (commands, command_create ( str_list_create_unique ("set", _("set"), NULL), -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org