apt: fix changed when cache updated but not pkg (#5487)

This commit is contained in:
René Moser 2016-11-06 17:21:41 +01:00 committed by Matt Clay
parent 08ce50c2b3
commit 447842c524

View file

@ -938,12 +938,6 @@ def main():
retvals['cache_updated'] = updated_cache
# Store when the update time was last
retvals['cache_update_time'] = updated_cache_time
# If the cache was updated and the general state change was set to
# False make sure that the change in cache state is accurately
# updated by setting the general changed state to the same as
# the cache state.
if updated_cache and not retvals['changed']:
retvals['changed'] = updated_cache
if success:
module.exit_json(**retvals)