Fix parsing of rpm.install.excludedocs option (bnc #518883)
authorMichael Andres <ma@suse.de>
Fri, 3 Jul 2009 11:00:42 +0000 (13:00 +0200)
committerMichael Andres <ma@suse.de>
Fri, 3 Jul 2009 11:00:42 +0000 (13:00 +0200)
zypp/ZConfig.cc

index 3b83db4..8002447 100644 (file)
@@ -364,7 +364,8 @@ namespace zypp
                 }
                 else if ( entry == "rpm.install.excludedocs" )
                 {
-                  rpmInstallFlags.setFlag( target::rpm::RPMINST_EXCLUDEDOCS );
+                  rpmInstallFlags.setFlag( target::rpm::RPMINST_EXCLUDEDOCS,
+                                           str::strToBool( value, false ) );
                 }
                 else if ( entry == "history.logfile" )
                 {
@@ -385,7 +386,7 @@ namespace zypp
         else
         {
           MIL << _parsedZyppConf << " not found, using defaults instead." << endl;
-          _parsedZyppConf.extend( " (NOT FOUND)" );
+          _parsedZyppConf = _parsedZyppConf.extend( " (NOT FOUND)" );
         }
 
         // legacy:
@@ -481,7 +482,7 @@ namespace zypp
   ZConfig::ZConfig()
   : _pimpl( new Impl )
   {
-    about( MIL);
+    about( MIL );
   }
 
   ///////////////////////////////////////////////////////////////////