From 000ea29e7072828908b46e6b1ec2966ca3cab459 Mon Sep 17 00:00:00 2001 From: Natalia Serrano Date: Thu, 20 Feb 2025 14:03:12 +0100 Subject: [PATCH] refs #1594 fix two bugs --- client/lib/engine/bin/CacheLib.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/lib/engine/bin/CacheLib.py b/client/lib/engine/bin/CacheLib.py index e6f0659..0a9f8c7 100755 --- a/client/lib/engine/bin/CacheLib.py +++ b/client/lib/engine/bin/CacheLib.py @@ -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)