fixup
This commit is contained in:
parent
f3e320f6cf
commit
30f8c29fc4
@ -40,8 +40,8 @@ def with_device(pth):
|
|||||||
finally:
|
finally:
|
||||||
subprocess.run(['losetup', '-d', dev])
|
subprocess.run(['losetup', '-d', dev])
|
||||||
elif pth.is_block_device():
|
elif pth.is_block_device():
|
||||||
subprocess.run(['partprobe', dev])
|
subprocess.run(['partprobe', pth])
|
||||||
yield dev
|
yield pth
|
||||||
|
|
||||||
def ci_lookup(base, *comps, creating=False, parents=False):
|
def ci_lookup(base, *comps, creating=False, parents=False):
|
||||||
"""Lookup path components case-insensitively"""
|
"""Lookup path components case-insensitively"""
|
||||||
|
Loading…
Reference in New Issue
Block a user