added volume plugin icons
fixed small bugs in error output fixed some subprocess.communicate mistakes fixed display bug in partition plugin
This commit is contained in:
parent
2d7b34afaa
commit
5846c3b0f8
15 changed files with 16 additions and 16 deletions
|
@ -21,7 +21,7 @@ def __partitionDevice(device):
|
|||
SFDISK_BIN,
|
||||
"-uM",
|
||||
device])
|
||||
proc.communicate()
|
||||
proc.wait()
|
||||
return proc.returncode == 0
|
||||
|
||||
|
||||
|
@ -38,7 +38,7 @@ def __formatPartition(device, type):
|
|||
MKFS_BIN,
|
||||
"-t", type,
|
||||
device])
|
||||
proc.communicate()
|
||||
proc.wait()
|
||||
## TODO: very ugly way of communication: it assumes, that failures are fast - success is slow
|
||||
if proc.returncode == 0:
|
||||
time.sleep(1)
|
||||
|
@ -57,7 +57,7 @@ def __labelPartition(device, label):
|
|||
LABEL_BIN,
|
||||
device,
|
||||
label])
|
||||
proc.communicate()
|
||||
proc.wait()
|
||||
return proc.returncode == 0
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
<div align="center">
|
||||
<table class="partition">
|
||||
<?cs if:Data.Plugins.partition.availSize > 0 ?>
|
||||
<?cs if:(Data.Plugins.partition.availSize > 0) || (subcount(Data.Plugins.partition.Parts) > 0) ?>
|
||||
<?cs # no table header if the harddisk is not partitionable (e.g. still active) ?>
|
||||
<tr>
|
||||
<th><?cs var:html_escape(Lang.Plugins.partition.Text.PartNum) ?></th>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue