diff options
author | neo <neowu.us@gmail.com> | 2016-06-10 17:35:08 -0400 |
---|---|---|
committer | neo <neowu.us@gmail.com> | 2016-06-10 17:35:08 -0400 |
commit | 606598a857640c199fb15aa25139fe0aad5ddfcd (patch) | |
tree | b3e78911224eb9e115043139f3b0a19dbccbc5d8 | |
parent | 1f5335d5e0360f849a8452a35bb6818289d0c73c (diff) | |
download | ansible-modules-core-606598a857640c199fb15aa25139fe0aad5ddfcd.tar.gz |
fix unarchive doesn't extract changed tar file #3901
-rw-r--r-- | files/unarchive.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/files/unarchive.py b/files/unarchive.py index af9891a0..f79e8904 100644 --- a/files/unarchive.py +++ b/files/unarchive.py @@ -132,6 +132,7 @@ import subprocess OWNER_DIFF_RE = re.compile(r': Uid differs$') GROUP_DIFF_RE = re.compile(r': Gid differs$') MODE_DIFF_RE = re.compile(r': Mode differs$') +MOD_TIME_DIFF_RE = re.compile(r': Mod time differs$') #NEWER_DIFF_RE = re.compile(r' is newer or same age.$') MISSING_FILE_RE = re.compile(r': Warning: Cannot stat: No such file or directory$') ZIP_FILE_MODE_RE = re.compile(r'([r-][w-][stx-]){3}') @@ -598,6 +599,8 @@ class TgzArchive(object): out += line + '\n' if not self.file_args['mode'] and MODE_DIFF_RE.search(line): out += line + '\n' + if MOD_TIME_DIFF_RE.search(line): + out += line + '\n' if MISSING_FILE_RE.search(line): out += line + '\n' if out: |