ref: refs/heads/SuSE-Code-11-Branch
commit 2874a474e584968ef17611585751cb63bd6976d5
Author: Michael Andres
Date: Fri Jul 3 13:00:42 2009 +0200
Fix parsing of rpm.install.excludedocs option (bnc #518883)
---
zypp/ZConfig.cc | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/zypp/ZConfig.cc b/zypp/ZConfig.cc
index 052166f..dce53cf 100644
--- a/zypp/ZConfig.cc
+++ b/zypp/ZConfig.cc
@@ -288,7 +288,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" )
{
@@ -309,7 +310,7 @@ namespace zypp
else
{
MIL << _parsedZyppConf << " not found, using defaults instead." << endl;
- _parsedZyppConf.extend( " (NOT FOUND)" );
+ _parsedZyppConf = _parsedZyppConf.extend( " (NOT FOUND)" );
}
// legacy:
@@ -399,7 +400,7 @@ namespace zypp
ZConfig::ZConfig()
: _pimpl( new Impl )
{
- about( MIL);
+ about( MIL );
}
///////////////////////////////////////////////////////////////////
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org