Mailinglist Archive: zypp-commit (158 mails)

< Previous Next >
[zypp-commit] <libzypp> SuSE-Code-11-Branch : Fix Patch::categoryEnum.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Fri, 20 Mar 2009 17:42:59 +0100
  • Message-id: <E1Lkhp1-0007s7-Mr@xxxxxxxxxxxxxxxx>
ref: refs/heads/SuSE-Code-11-Branch
commit 965f2216da174e2bddff2587ae7e1da5bdee0c5a
Author: Michael Andres <ma@xxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages