Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
salt.2353
0039-Prevent-metadata-download-when-getting-ins...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0039-Prevent-metadata-download-when-getting-installed-pro.patch of Package salt.2353
From f5feb2412495866b4844d8470b0453cefc381ce2 Mon Sep 17 00:00:00 2001 From: Michael Calmer <mc@suse.de> Date: Tue, 5 Apr 2016 12:06:29 +0200 Subject: [PATCH 39/39] Prevent metadata download when getting installed products --- salt/modules/zypper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/salt/modules/zypper.py b/salt/modules/zypper.py index 445e423..416ee92 100644 --- a/salt/modules/zypper.py +++ b/salt/modules/zypper.py @@ -1308,7 +1308,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') -- 2.1.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor