ref: refs/heads/SuSE-Code-11-Branch
commit 965f2216da174e2bddff2587ae7e1da5bdee0c5a
Author: Michael Andres
Date: Fri Mar 20 17:42:59 2009 +0100
Fix Patch::categoryEnum.
---
zypp/Patch.cc | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/zypp/Patch.cc b/zypp/Patch.cc
index cb35e75..3164c0e 100644
--- a/zypp/Patch.cc
+++ b/zypp/Patch.cc
@@ -54,7 +54,8 @@ namespace zypp
static const IdString cat_optional( "optional" );
static const IdString cat_document( "document" );
- IdString cat( sat::LookupAttr( sat::SolvAttr::patchcategory ).begin().idStr() );
+ // patch category is not poolized in the solv file (i.e. an IdString) ;(
+ IdString cat( sat::LookupAttr( sat::SolvAttr::patchcategory ).begin().c_str() );
if ( cat == cat_yast )
return CAT_YAST;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org