Use correct default foe zconfig(solver.checkSystemFile) (bnc# 475144)
authorMichael Andres <ma@suse.de>
Thu, 26 Feb 2009 10:19:54 +0000 (11:19 +0100)
committerMichael Andres <ma@suse.de>
Thu, 26 Feb 2009 12:57:42 +0000 (13:57 +0100)
zypp.conf
zypp/ZConfig.cc

index 8812e8f..0c4e47f 100644 (file)
--- a/zypp.conf
+++ b/zypp.conf
 ## installed.
 ## So the user will be informed if these packages will be deleted.
 ##
-## format: Each line represents one dependency:
-## e.g.
-## requires:kernel
-## requires:glibc
+## Format: Each line represents one dependency:
+##         e.g.
+##         requires:kernel
+##         requires:glibc
+## Default value: {configdir}/systemCheck
 ##
 # solver.checkSystemFile = /etc/zypp/systemCheck
 
index 33b13f5..699ea99 100644 (file)
@@ -581,7 +581,8 @@ namespace zypp
   { return _pimpl->solver_onlyRequires; }
 
   Pathname ZConfig::solver_checkSystemFile() const
-  { return _pimpl->solver_checkSystemFile; }
+  { return ( _pimpl->solver_checkSystemFile.empty()
+      ? (configPath()/"systemCheck") : _pimpl->solver_checkSystemFile ); }
 
   std::set<IdString> ZConfig::multiversion() const
   { return _pimpl->multiversion; }