commit: 42c120139aeb72a12299593d8601cb13d00f0547 Author: Zac Medico <zmedico <AT> gentoo <DOT> org> AuthorDate: Wed Feb 6 22:44:08 2019 +0000 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> CommitDate: Wed Feb 6 22:44:45 2019 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=42c12013
_raise_exc: handle EROFS Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> lib/portage/util/install_mask.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/portage/util/install_mask.py b/lib/portage/util/install_mask.py index a8c0cbda5..037fc8bc3 100644 --- a/lib/portage/util/install_mask.py +++ b/lib/portage/util/install_mask.py @@ -1,4 +1,4 @@ -# Copyright 2018 Gentoo Foundation +# Copyright 2018-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 __all__ = ['install_mask_dir', 'InstallMask'] @@ -12,7 +12,7 @@ import sys from portage import os, _unicode_decode from portage.exception import ( - OperationNotPermitted, PermissionDenied, FileNotFound) + OperationNotPermitted, PermissionDenied, ReadOnlyFileSystem, FileNotFound) from portage.util import normalize_path if sys.hexversion >= 0x3000000: @@ -130,6 +130,7 @@ _exc_map = { errno.ENOENT: FileNotFound, errno.EPERM: OperationNotPermitted, errno.EACCES: PermissionDenied, + errno.EROFS: ReadOnlyFileSystem, }