server_activator.sync: return valid status
server_activator.sync did not return any status when called. Fix it!
This commit is contained in:
+4
-4
@@ -118,12 +118,12 @@ if not entropyTools.is_root():
|
||||
raise SystemExit(2)
|
||||
elif (options[0] == "sync"):
|
||||
import server_activator
|
||||
server_activator.sync(options[1:])
|
||||
raise SystemExit(0)
|
||||
rc = server_activator.sync(options[1:])
|
||||
raise SystemExit(rc)
|
||||
elif (options[0] == "tidy"):
|
||||
import server_activator
|
||||
server_activator.sync(options[1:], justTidy = True)
|
||||
raise SystemExit(0)
|
||||
rc = server_activator.sync(options[1:], justTidy = True)
|
||||
raise SystemExit(rc)
|
||||
elif (options[0] == "database"):
|
||||
import server_activator
|
||||
server_activator.database(options[1:])
|
||||
|
||||
@@ -39,7 +39,7 @@ def sync(options, justTidy = False):
|
||||
sync_all = True
|
||||
elif opt.startswith("--"):
|
||||
print_error(red(" %s." % (_("Wrong parameters"),) ))
|
||||
return
|
||||
return 1
|
||||
else:
|
||||
myopts.append(opt)
|
||||
options = myopts
|
||||
@@ -89,6 +89,8 @@ def sync(options, justTidy = False):
|
||||
if old_default != Entropy.default_repository:
|
||||
Entropy.switch_default_repository(old_default)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
def packages(options):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user