You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/packaging/os
Kevin Carter 9b2ee881d9 apt: fix cache time handling (#1517)
This change is in response to issue #1497 where the apt module would not properly updating the apt cache in some situations and never returned a state change on cache update when the module was used without or without an item to be installed or upgraded.

The change simply allows the apt module to update the cache when update_cache option is used without or without a set cache_valid_time. 
If cache_valid_time is set and the on disk mtime for apt cache is ">" the provided amount of seconds, which now has a default of 0, the apt cache will be updated. Additionally if no upgrade, package, or deb is installed or changed but the apt cache is updated the module will return a changed state which will help users to know that the state of the environment has changed due to a task operation, even if it was only an apt cache update.

fixes #1497

Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
8 years ago
..
__init__.py Some more module categorization. 10 years ago
apt.py apt: fix cache time handling (#1517) 8 years ago
apt_key.py Fix python 3 issues with apt* modules. (#4848) 8 years ago
apt_repository.py Fix python 3 issues with apt* modules. (#4848) 8 years ago
apt_rpm.py Proper author info for all remaining modules 10 years ago
package.py removed extra space 9 years ago
redhat_subscription.py Add way to specify environment (#3453) 8 years ago
rhn_channel.py Proper author info for all remaining modules 10 years ago
rhn_register.py Convert packaging/* to py3/py2.4 syntax (#3702) 9 years ago
rpm_key.py Fix error reporting for fetch_key (#2662) 9 years ago
yum.py Check whether yum file or URL install is an upgrade (#4547) 8 years ago