File libparted-fix-mmcblk-partition-name.patch of Package parted.3440

---
 libparted/arch/linux.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Index: parted-3.1/libparted/arch/linux.c
===================================================================
--- parted-3.1.orig/libparted/arch/linux.c
+++ parted-3.1/libparted/arch/linux.c
@@ -2240,7 +2240,8 @@ _device_get_part_path (PedDevice *dev, i
                                     (int) (path_len - 5), dev->path, num);
         } else {
 		const char *p;
-		if (dev->type == PED_DEVICE_CPQARRAY)
+		if (dev->type == PED_DEVICE_CPQARRAY ||
+		    dev->type == PED_DEVICE_SDMMC)
 			p = "p";
 		else
 			p = (dev->type == PED_DEVICE_DAC960
openSUSE Build Service is sponsored by