refs #1594 fix two bugs
parent
45cfe25222
commit
000ea29e70
|
@ -333,15 +333,16 @@ def ogMountCache():
|
|||
#@warning Salidas de errores no determinada
|
||||
#*/ ##
|
||||
def ogUnmountCache():
|
||||
cachepart = ogFindCache().split()
|
||||
cachepart = ogFindCache()
|
||||
if cachepart is None:
|
||||
SystemLib.ogRaiseError ([], ogGlobals.OG_ERR_PARTITION, ogGlobals.lang.MSG_NOCACHE)
|
||||
return
|
||||
|
||||
cachepart = cachepart.split()
|
||||
if not FileSystemLib.ogIsMounted (cachepart[0], cachepart[1]): return True
|
||||
FileSystemLib.ogUnmountFs (cachepart[0], cachepart[1])
|
||||
|
||||
# Eliminar el enlace simbólico de /mnt/ParticiónCache.
|
||||
dev = DiskLib.ogDiskToDev (cachepart[0], cachepart[1])
|
||||
dev = dev.replace ('dev', 'mnt')
|
||||
os.remove (dev)
|
||||
if os.path.exists (dev): os.remove (dev)
|
||||
|
|
Loading…
Reference in New Issue