(self)
return status.returncode == 0
Umount the remote location if necessary
Umount the remote location if necessary
Umount the remote location if necessary
def umountRepository(self):
        """Umount the remote location if necessary"""
        if not self.repositoryMounted:
            return True

        # Local directories are never mounted
        if self.location.scheme == 'dir' or self.location.scheme == 'ssh':
            self.repositoryPath = None
            self.repositoryMounted = False
            return True

        # umount the current location
        args = [ 'umount', self.mountPath ]

        # Umount the user partition, keep stdout / stderr
        status = self.runCommand(args, "Unmounting repository")

        return status.returncode == 0
def umountRepository ( self ) : if not self . repositoryMounted : return True # Local directories are never mounted if self . location . scheme == 'dir' or self . location . scheme == 'ssh' : self . repositoryPath = None self . repositoryMounted = False return True # umount the current location args = [ 'umount' , self . mountPath ] # Umount the user partition, keep stdout / stderr status = self . runCommand ( args , "Unmounting repository" ) return status . returncode == 0