From ab45ddbb269273dc8cdd22a1137c1cf7c3928069 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 30 Apr 2011 18:34:06 +0000 Subject: [PATCH] 4870: Do not attempt to archive a media file that does not have read permission svn: r17359 --- src/plugins/export/ExportPkg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/export/ExportPkg.py b/src/plugins/export/ExportPkg.py index 535a14834..1704f94c4 100644 --- a/src/plugins/export/ExportPkg.py +++ b/src/plugins/export/ExportPkg.py @@ -184,7 +184,7 @@ class PackageWriter(object): mobject = self.db.get_object_from_handle(m_id) filename = Utils.media_path_full(self.db, mobject.get_path()) archname = str(mobject.get_path()) - if os.path.isfile(filename): + if os.path.isfile(filename) and os.access(filename, os.R_OK): archive.add(filename, archname) # else: # # File is lost => ask what to do