move installOnly to Solvable
authorStefan Schubert <schubi@suse.de>
Thu, 17 Jul 2008 07:29:36 +0000 (07:29 +0000)
committerStefan Schubert <schubi@suse.de>
Thu, 17 Jul 2008 07:29:36 +0000 (07:29 +0000)
zypp/ResObject.cc
zypp/ResObject.h
zypp/Resolvable.h
zypp/sat/Solvable.cc
zypp/sat/Solvable.h

index 4803653..dfd8018 100644 (file)
@@ -16,7 +16,6 @@
 #include "zypp/sat/Solvable.h"
 #include "zypp/Repository.h"
 #include "zypp/RepoInfo.h"
-#include "zypp/ZConfig.h"
 #include "zypp/IdString.h"
 
 using namespace zypp;
@@ -85,14 +84,6 @@ namespace zypp
   unsigned ResObject::mediaNr() const
   { return lookupNumAttribute( sat::SolvAttr::medianr ); }
 
-  bool ResObject::installOnly() const
-  {
-      std::set<IdString> parallel = ZConfig::instance().parallelInstallable();
-      if (parallel.find(ident()) != parallel.end())
-             return true;
-      return false;
-  }
-
   Date ResObject::buildtime() const
   { return Date( lookupNumAttribute( sat::SolvAttr::buildtime ) ); }
 
index 644cd7e..7c0ba96 100644 (file)
@@ -135,13 +135,6 @@ namespace zypp
     unsigned mediaNr() const;
 
     /**
-     * \TODO FIXME what is this?
-     * Flag in the metadata indicating this should be
-     * installed unsing '-i' (not -U).
-     */
-    bool installOnly() const;
-
-    /**
      * \short build time of the resolvable
      */
     Date buildtime() const;
index 33b7eda..4e73bd9 100644 (file)
@@ -63,6 +63,13 @@ namespace zypp
     using sat::Solvable::edition;
     using sat::Solvable::arch;
 
+      
+    /**
+     * Flag in the metadata indicating this should be
+     * installed unsing '-i' (not -U).
+     */
+    using sat::Solvable::installOnly;      
+
     /** \name Dependencies. */
     //@{
     /** Select by Dep. */
index f67083a..e4bfbeb 100644 (file)
@@ -22,6 +22,7 @@
 #include "zypp/sat/Pool.h"
 #include "zypp/Repository.h"
 #include "zypp/OnMediaLocation.h"
+#include "zypp/ZConfig.h"
 
 using std::endl;
 
@@ -318,6 +319,14 @@ namespace zypp
       //return ArchId( _solvable->arch );
     }
 
+    bool Solvable::installOnly() const
+    {
+       std::set<IdString> parallel = ZConfig::instance().parallelInstallable();
+       if (parallel.find(ident()) != parallel.end())
+             return true;
+       return false;
+    }
+
     IdString Solvable::vendor() const
     {
       NO_SOLVABLE_RETURN( IdString() );
index 1257e4f..e47ac60 100644 (file)
@@ -156,6 +156,8 @@ namespace zypp
 
         IdString     vendor()   const;
 
+       bool         installOnly() const;
+
       public:
 
         /** \name Access to the \ref Solvable dependencies.