From 12583e37ac0b21ba91297e034821bd53cb86bd01 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A1n=20Kupec?= Date: Fri, 15 Oct 2010 18:19:21 +0200 Subject: [PATCH] one more gotcha --- src/repos.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/repos.cc b/src/repos.cc index dfaab60..71abfe2 100644 --- a/src/repos.cc +++ b/src/repos.cc @@ -514,12 +514,9 @@ unsigned repo_specs_to_aliases(Zypper & zypper, template void do_init_repos(Zypper & zypper, const Container & container) { - RepoManager & manager = zypper.repoManager(); - RuntimeData & gData = zypper.runtimeData(); - MIL << "Refreshing autorefresh services." << endl; - const list & services = manager.knownServices(); + const list & services = zypper.repoManager().knownServices(); bool called_refresh = false; for_(s, services.begin(), services.end()) { @@ -534,6 +531,8 @@ void do_init_repos(Zypper & zypper, const Container & container) zypper.initRepoManager(); MIL << "Going to initialize repositories." << endl; + RepoManager & manager = zypper.repoManager(); + RuntimeData & gData = zypper.runtimeData(); // load gpg keys init_target(zypper); -- 2.7.4