diff options
author | Papoteur <papoteur@mageia.org> | 2020-11-17 18:49:51 +0100 |
---|---|---|
committer | Papoteur <papoteur@mageia.org> | 2020-11-17 18:49:51 +0100 |
commit | dc200cd8a75d489474ac880905757fa52f1f3d98 (patch) | |
tree | a0c8789dbe25216b1decfa684d680e122c6d32aa /lib | |
parent | e39062ccbbf0a4a12b919a64c712297d4eddc73c (diff) | |
download | isodumper-dc200cd8a75d489474ac880905757fa52f1f3d98.tar isodumper-dc200cd8a75d489474ac880905757fa52f1f3d98.tar.gz isodumper-dc200cd8a75d489474ac880905757fa52f1f3d98.tar.bz2 isodumper-dc200cd8a75d489474ac880905757fa52f1f3d98.tar.xz isodumper-dc200cd8a75d489474ac880905757fa52f1f3d98.zip |
Fix for unmounting
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/isodumper.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/isodumper.py b/lib/isodumper.py index bd8802b..32f311c 100755 --- a/lib/isodumper.py +++ b/lib/isodumper.py @@ -129,9 +129,10 @@ class UDisks2(object): fs.Lock({}) else: iface = self.bus.get(self.SERVICE, block['path']) - fs = iface[self.SERVICE + '.Filesystem'] - if fs.MountPoints: # partition is mounted - fs.Unmount({}) + if self.SERVICE + '.Filesystem' in objects[block['path']]: + fs = iface[self.SERVICE + '.Filesystem'] + if fs.MountPoints: # partition is mounted + fs.Unmount({}) return True, "" def eject(self, device): |