From 653564cd103180fb03e0c7716083c6e567cb4a41 Mon Sep 17 00:00:00 2001 From: Wei Jiangang Date: Fri, 19 Aug 2016 09:10:21 +0800 Subject: [PATCH] avocado.utils.archive: Fix undefined name and update log There's no declaration for 'msg'. and update the log message suggested by Cleber Rosa. Signed-off-by: Cleber Rosa Signed-off-by: Wei Jiangang --- avocado/utils/archive.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/avocado/utils/archive.py b/avocado/utils/archive.py index 6fa85d62..24613e4e 100644 --- a/avocado/utils/archive.py +++ b/avocado/utils/archive.py @@ -175,8 +175,11 @@ class ArchiveFile(object): for path, info in self._engine.NameToInfo.iteritems(): dst = os.path.join(dst_dir, path) if not os.path.exists(dst): - LOG.warn("Paths in this zip file are stored in unsupported " - "format, not updating the attributes. (%s)", msg) + LOG.warn("One or more files in the ZIP archive '%s' could " + "not be found after extraction. Their paths are " + "probably stored in unsupported format and their " + "attributes are not going to be updated", + self.filename) return attr = info.external_attr >> 16 if attr & stat.S_IFLNK == stat.S_IFLNK: -- GitLab