Mailinglist Archive: zypp-commit (158 mails)
| < Previous | Next > |
[zypp-commit] <libzypp> master : Fix Patch::categoryEnum.
- From: Michael Andres <ma@xxxxxxx>
- Date: Fri, 20 Mar 2009 17:54:46 +0100
- Message-id: <E1Lki0n-00082D-86@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 1893b24481c817e0d9709d4674c505f342da252f
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..bd5ed04 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, satSolvable()
).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
commit 1893b24481c817e0d9709d4674c505f342da252f
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..bd5ed04 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, satSolvable()
).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 > |