Prevent metadata download when listing installed products

This commit is contained in:
Michael Calmer 2016-04-05 12:06:29 +02:00
parent e1ef4a9d66
commit e32212ad53

View file

@ -1322,7 +1322,10 @@ def list_products(all=False, refresh=False):
ret = list()
OEM_PATH = "/var/lib/suseRegister/OEM"
cmd = _zypper('-x', 'products')
cmd = _zypper()
if not all:
cmd.append('--disable-repos')
cmd.extend(['-x', 'products'])
if not all:
cmd.append('-i')