1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

change -Syy to -Sy

-Syy do always update, which is not needed, since the caches might already be up to date.
This commit is contained in:
@RubenKelevra 2015-05-11 23:58:08 +02:00 committed by Matt Clay
parent 4598ae5376
commit b562dba1bf

View file

@ -78,7 +78,7 @@ EXAMPLES = '''
# Recursively remove package baz # Recursively remove package baz
- pacman: name=baz state=absent recurse=yes - pacman: name=baz state=absent recurse=yes
# Run the equivalent of "pacman -Syy" as a separate step # Run the equivalent of "pacman -Sy" as a separate step
- pacman: update_cache=yes - pacman: update_cache=yes
''' '''
@ -124,7 +124,7 @@ def query_package(module, name, state="present"):
def update_package_db(module): def update_package_db(module):
cmd = "pacman -Syy" cmd = "pacman -Sy"
rc, stdout, stderr = module.run_command(cmd, check_rc=False) rc, stdout, stderr = module.run_command(cmd, check_rc=False)
if rc == 0: if rc == 0: