mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
5a8e4b2174
commit
1c2ff97a5d
@ -740,12 +740,17 @@ class Device(DeviceConfig, DevicePlugin):
|
|||||||
umount(d)
|
umount(d)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
failures = False
|
||||||
for d in drives:
|
for d in drives:
|
||||||
try:
|
try:
|
||||||
eject(d)
|
eject(d)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
print 'Udisks eject call for:', d, 'failed:'
|
print 'Udisks eject call for:', d, 'failed:'
|
||||||
print '\t', e
|
print '\t', e
|
||||||
|
failures = True
|
||||||
|
|
||||||
|
if not failures:
|
||||||
|
return
|
||||||
|
|
||||||
for drive in drives:
|
for drive in drives:
|
||||||
cmd = 'calibre-mount-helper'
|
cmd = 'calibre-mount-helper'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user