From 9c00220bc27066850f58c435deed424c743457a7 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Thu, 19 Feb 2015 02:36:38 +0100 Subject: Client/Tools/Pkgng: No auto-update on pkg-search. By default pkg search will update the local copy of the repository catalogue from remote. We are executing a lot of searches and do not want to update the catalogue every time. --- src/lib/Bcfg2/Client/Tools/Pkgng.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/Bcfg2/Client/Tools/Pkgng.py b/src/lib/Bcfg2/Client/Tools/Pkgng.py index 8989e084d..31a6baddd 100644 --- a/src/lib/Bcfg2/Client/Tools/Pkgng.py +++ b/src/lib/Bcfg2/Client/Tools/Pkgng.py @@ -109,7 +109,7 @@ class Pkgng(Bcfg2.Client.Tools.Tool): Get versions of the specified package name available for installation from the configured remote repositories. """ - output = self.cmd.run([self.pkg, 'search', '-Qversion', '-q', + output = self.cmd.run([self.pkg, 'search', '-U', '-Qversion', '-q', '-Sname', '-e', name]).stdout.splitlines() versions = [] for line in output: -- cgit v1.2.3-1-g7c22