Merge pull request #7939 from PinGwynn/feature

portage: Successful exit if sync=yes and no package provided
This commit is contained in:
James Cammarata 2014-06-26 10:22:07 -05:00
commit 5c959e7a20

View file

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