Optimize log output (set all defaults before logging the values)
authorMichael Andres <ma@suse.de>
Thu, 24 Feb 2011 09:28:29 +0000 (10:28 +0100)
committerMichael Andres <ma@suse.de>
Thu, 24 Feb 2011 09:34:40 +0000 (10:34 +0100)
zypp/parser/RepoindexFileReader.cc

index 191c67b..6e4e4d4 100644 (file)
@@ -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;