File 0003-fix-slowness-bnc-679650.patch of Package PackageKit.import5521

From 5f1d1aeb570c5b4a711ec82447975e66a3443fca Mon Sep 17 00:00:00 2001
From: Duncan Mac-Vicar P <dmacvicar@suse.de>
Date: Tue, 26 Jul 2011 11:32:59 +0200
Subject: [PATCH 3/8] fix slowness (bnc#679650)

---
 backends/zypp/zypp-utils.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/backends/zypp/zypp-utils.cpp b/backends/zypp/zypp-utils.cpp
index 68d59da..8fc69bd 100644
--- a/backends/zypp/zypp-utils.cpp
+++ b/backends/zypp/zypp-utils.cpp
@@ -352,7 +352,7 @@ zypp_get_packages_by_name (PkBackend *backend,
 			   vector<sat::Solvable> &result,
 			   gboolean include_local)
 {
-	ResPool pool = zypp_build_pool (backend, include_local);
+	ResPool pool(ResPool::instance());
 
         for (ResPool::byIdent_iterator it = pool.byIdentBegin (kind, package_name);
                         it != pool.byIdentEnd (kind, package_name); it++) {
-- 
1.7.6.4