提交 653564cd 编写于 作者: W Wei Jiangang

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: NCleber Rosa <crosa@redhat.com>
Signed-off-by: NWei Jiangang <weijg.fnst@cn.fujitsu.com>
上级 c135b369
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册