From 270c2e8bbdfcc59c64e41f2232ce46d68914f883 Mon Sep 17 00:00:00 2001 From: Marius Gedminas Date: Tue, 25 Aug 2015 19:15:33 +0300 Subject: [PATCH] apt: check for "0 upgraded" to be at the beginning of the line Fixes #1678. --- lib/ansible/modules/packaging/os/apt.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 lib/ansible/modules/packaging/os/apt.py diff --git a/lib/ansible/modules/packaging/os/apt.py b/lib/ansible/modules/packaging/os/apt.py old mode 100644 new mode 100755 index 92b0f2fb8fd..1fd770f710e --- a/lib/ansible/modules/packaging/os/apt.py +++ b/lib/ansible/modules/packaging/os/apt.py @@ -179,8 +179,8 @@ APT_ENV_VARS = dict( ) DPKG_OPTIONS = 'force-confdef,force-confold' -APT_GET_ZERO = "0 upgraded, 0 newly installed" -APTITUDE_ZERO = "0 packages upgraded, 0 newly installed" +APT_GET_ZERO = "\n0 upgraded, 0 newly installed" +APTITUDE_ZERO = "\n0 packages upgraded, 0 newly installed" APT_LISTS_PATH = "/var/lib/apt/lists" APT_UPDATE_SUCCESS_STAMP_PATH = "/var/lib/apt/periodic/update-success-stamp"