From f4774a71b73d49a92e1d1a024d47494ee45ffd6b Mon Sep 17 00:00:00 2001 From: Maxim Odinintsev Date: Thu, 26 Jun 2014 14:55:16 +0300 Subject: [PATCH] Success exit if sync=yes and no package provided --- packaging/portage | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packaging/portage b/packaging/portage index 2cce4b41d1e..c9d9774d428 100644 --- a/packaging/portage +++ b/packaging/portage @@ -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 successfuly finished.') packages = p['package'].split(',') if p['package'] else []