From 8852d652a9588fdc5aa4303e164d116ea5658970 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Thu, 24 Feb 2011 10:28:29 +0100 Subject: [PATCH] Optimize log output (set all defaults before logging the values) --- zypp/parser/RepoindexFileReader.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zypp/parser/RepoindexFileReader.cc b/zypp/parser/RepoindexFileReader.cc index 191c67b..6e4e4d4 100644 --- a/zypp/parser/RepoindexFileReader.cc +++ b/zypp/parser/RepoindexFileReader.cc @@ -109,6 +109,9 @@ namespace zypp // enabled attribute is set info.setEnabled(false); + // Set some defaults that are not contained in the repo information + info.setAutorefresh( true ); + // url and/or path string url_s; s = reader_r->getAttribute("url"); @@ -164,9 +167,6 @@ namespace zypp DBG << info << endl; - // Set some defaults that are not contained in the repo information - info.setAutorefresh( true ); - // ignore the rest _callback(info); return true; -- 2.7.4