ignore no repos defined exit code

This commit is contained in:
Michael Calmer 2022-07-10 16:10:02 +02:00 committed by Daniel Wozniak
parent 745e5f00f5
commit 38e044b90d

View file

@ -1450,7 +1450,9 @@ def refresh_db(force=None, root=None, **kwargs):
if kwargs.get("gpgautoimport", False):
global_opts.append("--gpg-auto-import-keys")
out = __zypper__(root=root).refreshable.call(*global_opts, *refresh_opts)
out = __zypper__(root=root).refreshable.call(
*global_opts, *refresh_opts, success_retcodes=[0, 6]
)
for line in out.splitlines():
if not line: