mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
cleanups
This commit is contained in:
parent
45d57f4ee5
commit
d7b1624ec6
@ -160,7 +160,6 @@ class FreeBSDScanner(object):
|
||||
def __call__(self):
|
||||
ans = set([])
|
||||
import dbus
|
||||
devs = []
|
||||
|
||||
try:
|
||||
bus = dbus.SystemBus()
|
||||
@ -170,7 +169,6 @@ class FreeBSDScanner(object):
|
||||
for path in paths:
|
||||
obj = bus.get_object('org.freedesktop.Hal', path)
|
||||
objif = dbus.Interface(obj, 'org.freedesktop.Hal.Device')
|
||||
devif = objif
|
||||
parentdriver = None
|
||||
while parentdriver != 'umass':
|
||||
try:
|
||||
|
@ -718,7 +718,7 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
d.serial == objif.GetProperty('usb.serial'):
|
||||
dpaths = manager.FindDeviceStringMatch('storage.originating_device', path)
|
||||
for dpath in dpaths:
|
||||
devif = dbus.Interface(bus.get_object('org.freedesktop.Hal', dpath), 'org.freedesktop.Hal.Device')
|
||||
#devif = dbus.Interface(bus.get_object('org.freedesktop.Hal', dpath), 'org.freedesktop.Hal.Device')
|
||||
try:
|
||||
vpaths = manager.FindDeviceStringMatch('block.storage_device', dpath)
|
||||
for vpath in vpaths:
|
||||
@ -763,8 +763,6 @@ class Device(DeviceConfig, DevicePlugin):
|
||||
if vol['dev'].GetProperty('volume.is_mounted'):
|
||||
mp = vol['dev'].GetProperty('volume.mount_point')
|
||||
else:
|
||||
if verbose:
|
||||
print "FBSD: trying ", vol['label'], "on", 'Calibre-'+labels[i]
|
||||
try:
|
||||
vol['vol'].Mount('Calibre-'+vol['label'],
|
||||
vol['dev'].GetProperty('volume.fstype'), [])
|
||||
|
Loading…
x
Reference in New Issue
Block a user