def __end_state_update(self):
"""Called when we're done updating the image catalog."""
# get the path to the image catalog update flag file
pathname = self.__state_updating_pathname()
# delete the flag file.
try:
portable.remove(pathname)
except EnvironmentError as e:
if e.errno == errno.EACCES:
raise apx.PermissionsException(e.filename)
if e.errno == errno.EROFS:
raise apx.ReadOnlyFileSystemException(
e.filename)
raise
评论列表
文章目录