Sisyphus repository
Last update: 24 june 2022 | SRPMs: 17496 | Visits: 24437482
en ru br
ALT Linux repos
5.0: 0.4.5-alt24
4.1: 0.4.5-alt23
4.0: 0.4.5-alt20
3.0: 0.4.4-alt3.1

Group :: System/Configuration/Hardware
RPM: qtparted

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: qtparted-0.4.5-notable.patch
Download


diff -urN qtparted-0.4.5.orig/src/qp_devlist.cpp qtparted-0.4.5/src/qp_devlist.cpp
--- qtparted-0.4.5.orig/src/qp_devlist.cpp	2005-08-10 14:05:37 +0300
+++ qtparted-0.4.5/src/qp_devlist.cpp	2006-11-15 19:48:51 +0200
@@ -260,10 +260,7 @@
 			device->setShortname(dev->path);
 
 		PedDiskType *disktype = ped_disk_probe(dev);
-		if (disktype)
-			device->setPartitionTable(true);
-		else
-			device->setPartitionTable(false);
+		device->setPartitionTable((disktype && strncmp(disktype->name, "loop", 4)) ? true : false);
 
 		/*---get if the device is busy---*/
 		device->setIsBusy(ped_device_is_busy(dev));
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin