apt: check for "0 upgraded" to be at the beginning of the line

Fixes #1678.
This commit is contained in:
Marius Gedminas 2015-08-25 19:15:33 +03:00 committed by Matt Clay
parent e005ef0c36
commit 270c2e8bbd

4
lib/ansible/modules/packaging/os/apt.py Normal file → Executable file
View file

@ -179,8 +179,8 @@ APT_ENV_VARS = dict(
) )
DPKG_OPTIONS = 'force-confdef,force-confold' DPKG_OPTIONS = 'force-confdef,force-confold'
APT_GET_ZERO = "0 upgraded, 0 newly installed" APT_GET_ZERO = "\n0 upgraded, 0 newly installed"
APTITUDE_ZERO = "0 packages upgraded, 0 newly installed" APTITUDE_ZERO = "\n0 packages upgraded, 0 newly installed"
APT_LISTS_PATH = "/var/lib/apt/lists" APT_LISTS_PATH = "/var/lib/apt/lists"
APT_UPDATE_SUCCESS_STAMP_PATH = "/var/lib/apt/periodic/update-success-stamp" APT_UPDATE_SUCCESS_STAMP_PATH = "/var/lib/apt/periodic/update-success-stamp"