Merge pull request #7939 from PinGwynn/feature

portage: Successful exit if sync=yes and no package provided
pull/7940/merge
James Cammarata 11 years ago
commit 5c959e7a20

@ -362,7 +362,7 @@ def main():
if p['sync']: if p['sync']:
sync_repositories(module, webrsync=(p['sync'] == 'web')) sync_repositories(module, webrsync=(p['sync'] == 'web'))
if not p['package']: if not p['package']:
return module.exit_json(msg='Sync successfully finished.')
packages = p['package'].split(',') if p['package'] else [] packages = p['package'].split(',') if p['package'] else []

Loading…
Cancel
Save