30 lines
799 B
Diff
30 lines
799 B
Diff
|
From 336929a4cadca55b00dbf1cd33eb35d19f420c73 Mon Sep 17 00:00:00 2001
|
||
|
From: Michael Calmer <mc@suse.de>
|
||
|
Date: Tue, 5 Apr 2016 12:06:29 +0200
|
||
|
Subject: [PATCH 10/12] 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 63c473c..9702f42 100644
|
||
|
--- a/salt/modules/zypper.py
|
||
|
+++ b/salt/modules/zypper.py
|
||
|
@@ -1309,7 +1309,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
|
||
|
|