ref: refs/heads/master
commit 139344772dfd10b247deccb59c7a913e8ae26400
Author: Michael Andres
Date: Wed May 27 17:54:40 2009 +0200
Add SolvAttr constants for vendor and dependencies.
- also remove unused SolvAttr::filenames
---
zypp/sat/SolvAttr.cc | 11 ++++++++++-
zypp/sat/SolvAttr.h | 19 +++++++++++++------
2 files changed, 23 insertions(+), 7 deletions(-)
diff --git a/zypp/sat/SolvAttr.cc b/zypp/sat/SolvAttr.cc
index 937f3d7..83a98d3 100644
--- a/zypp/sat/SolvAttr.cc
+++ b/zypp/sat/SolvAttr.cc
@@ -36,6 +36,16 @@ namespace sat
const SolvAttr SolvAttr::name ( SOLVABLE_NAME );
const SolvAttr SolvAttr::edition ( SOLVABLE_EVR );
const SolvAttr SolvAttr::arch ( SOLVABLE_ARCH );
+ const SolvAttr SolvAttr::vendor ( SOLVABLE_VENDOR );
+
+ const SolvAttr SolvAttr::provides ( SOLVABLE_PROVIDES );
+ const SolvAttr SolvAttr::obsoletes ( SOLVABLE_OBSOLETES );
+ const SolvAttr SolvAttr::conflicts ( SOLVABLE_CONFLICTS );
+ const SolvAttr SolvAttr::requires ( SOLVABLE_REQUIRES );
+ const SolvAttr SolvAttr::recommends ( SOLVABLE_RECOMMENDS );
+ const SolvAttr SolvAttr::suggests ( SOLVABLE_SUGGESTS );
+ const SolvAttr SolvAttr::supplements ( SOLVABLE_SUPPLEMENTS );
+ const SolvAttr SolvAttr::enhances ( SOLVABLE_ENHANCES );
const SolvAttr SolvAttr::summary ( SOLVABLE_SUMMARY ); // translated
const SolvAttr SolvAttr::description ( SOLVABLE_DESCRIPTION ); // translated
@@ -63,7 +73,6 @@ namespace sat
const SolvAttr SolvAttr::keywords ( SOLVABLE_KEYWORDS );
const SolvAttr SolvAttr::sourcesize ( "sourcesize" );
const SolvAttr SolvAttr::authors ( SOLVABLE_AUTHORS );
- const SolvAttr SolvAttr::filenames ( "filenames" );
const SolvAttr SolvAttr::filelist ( SOLVABLE_FILELIST );
const SolvAttr SolvAttr::sourcearch ( SOLVABLE_SOURCEARCH );
const SolvAttr SolvAttr::sourcename ( SOLVABLE_SOURCENAME );
diff --git a/zypp/sat/SolvAttr.h b/zypp/sat/SolvAttr.h
index d14230c..a15f900 100644
--- a/zypp/sat/SolvAttr.h
+++ b/zypp/sat/SolvAttr.h
@@ -45,17 +45,25 @@ namespace sat
/** Value representing \c noAttr (<tt>""</tt>)*/
static const SolvAttr noAttr;
- /** \name special solvable attributes which are part of the ::Solvable struct
- *
- * \todo can these be used in LookupAttr currently?
- * \todo add dependencies here? Or move all this stuff elsewhere?
- */
+ /** \name special solvable attributes which are part of the ::Solvable struct */
//@{
static const SolvAttr name;
static const SolvAttr edition;
static const SolvAttr arch;
+ static const SolvAttr vendor;
//@}
+ /** \name dependency attrigutes */
+ //@{
+ static const SolvAttr provides;
+ static const SolvAttr obsoletes;
+ static const SolvAttr conflicts;
+ static const SolvAttr requires;
+ static const SolvAttr recommends;
+ static const SolvAttr suggests;
+ static const SolvAttr supplements;
+ static const SolvAttr enhances;
+
/** \name common */
//@{
static const SolvAttr summary;
@@ -86,7 +94,6 @@ namespace sat
static const SolvAttr keywords;
static const SolvAttr sourcesize;
static const SolvAttr authors;
- static const SolvAttr filenames;
static const SolvAttr filelist;
static const SolvAttr sourcearch;
static const SolvAttr sourcename;
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org
For additional commands, e-mail: zypp-commit+help@opensuse.org