enable dummy implementation for Product
authorKlaus Kaempf <kkaempf@suse.de>
Tue, 17 Jan 2006 14:50:07 +0000 (14:50 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Tue, 17 Jan 2006 14:50:07 +0000 (14:50 +0000)
use this in solver/temporary/ResItem.cc

zypp/Product.cc
zypp/detail/ProductImplIf.h
zypp/solver/temporary/ResItem.cc

index ec39335..f3fbfc7 100644 (file)
@@ -43,8 +43,9 @@ namespace zypp
   ///////////////////////////////////////////////////////////////////
 
   std::string Product::category() const
-  { return pimpl().category(); }
-
+#warning dummy implementation
+//  { return pimpl().category(); }
+  { return ""; }
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
index 5b2a78d..988a906 100644 (file)
@@ -36,10 +36,12 @@ namespace zypp
       typedef Product ResType;
 
     public:
+#if 0
       /** Get the category of the product */
       virtual std::string category() const = 0;
       virtual Label vendor() const = 0;
       virtual Label displayName() const = 0;
+#endif
     };
     ///////////////////////////////////////////////////////////////////
 
index 81c342e..138d50c 100644 (file)
@@ -196,43 +196,43 @@ namespace zypp
          {
              shared_ptr<zypp::detail::PackageImpl> pkgImpl;
              zypp::Package::Ptr pkg( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                          pkgImpl ) );
+                                                                          pkgImpl ) );
              _resObject = pkg;
          } else if (kind == ResTraits<zypp::Selection>::kind)
          {
              shared_ptr<zypp::detail::SelectionImpl> selImpl;
              zypp::Selection::Ptr sel( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                            selImpl ) );
+                                                                            selImpl ) );
              _resObject = sel;
          } else if (kind == ResTraits<zypp::Pattern>::kind)
          {
              shared_ptr<zypp::detail::PatternImpl> patternImpl;
              zypp::Pattern::Ptr pattern( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                            patternImpl ) );
+                                                                            patternImpl ) );
              _resObject = pattern;
          } else if (kind == ResTraits<zypp::Product>::kind)
          {
-//              shared_ptr<zypp::detail::ProductImpl> proImpl;
-//              zypp::Product::Ptr pro( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-//                                                                           proImpl ) );
-//              _resObject = pro;
+             shared_ptr<zypp::detail::ProductImpl> productImpl;
+             zypp::Product::Ptr product( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
+                                                                          productImpl ) );
+             _resObject = product;
          } else if (kind == ResTraits<zypp::Patch>::kind)
          {
              shared_ptr<zypp::detail::PatchImpl> patchImpl;
              zypp::Patch::Ptr patch( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                          patchImpl ) );
+                                                                          patchImpl ) );
              _resObject = patch;
          } else if (kind == ResTraits<zypp::Script>::kind)
          {
              shared_ptr<zypp::detail::ScriptImpl> scriptImpl;
              zypp::Script::Ptr script( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                            scriptImpl ) );
+                                                                            scriptImpl ) );
              _resObject = script;
          } else if (kind == ResTraits<zypp::Message>::kind)
          {
              shared_ptr<zypp::detail::MessageImpl> messageImpl;
              zypp::Message::Ptr message( zypp::detail::makeResolvableAndImpl( NVRAD(name, edition, arch),
-                                                                              messageImpl ) );
+                                                                              messageImpl ) );
              _resObject = message;
          }