22603076 pkg list entire dies with EACCES
authorYiteng Zhang <yiteng.zhang@oracle.com>
Fri, 06 Jan 2017 12:07:16 -0800
changeset 3479 ef13fb861f9f
parent 3477 03d36c13ce40
child 3480 f49f488bcdad
22603076 pkg list entire dies with EACCES
src/modules/misc.py
--- a/src/modules/misc.py	Wed Jan 04 22:27:21 2017 -0800
+++ b/src/modules/misc.py	Fri Jan 06 12:07:16 2017 -0800
@@ -20,7 +20,7 @@
 # CDDL HEADER END
 #
 
-# Copyright (c) 2007, 2016, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2007, 2017, Oracle and/or its affiliates. All rights reserved.
 
 """
 Misc utility functions used by the packaging system.
@@ -238,7 +238,8 @@
                         raise shutil.Error("Destination path '{0}' already "
                             "exists".format(dst))
                 else:
-                        raise
+                        # Access to protected member; pylint: disable=W0212
+                        raise api_errors._convert_error(e)
 
 def expanddirs(dirs):
         """given a set of directories, return expanded set that includes