start implementing eraseInstalled() (unfinished)
authorKlaus Kaempf <kkaempf@suse.de>
Thu, 23 Feb 2006 20:43:45 +0000 (20:43 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Thu, 23 Feb 2006 20:43:45 +0000 (20:43 +0000)
zypp/ResPool.cc
zypp/ResPool.h

index e77190b..184d33e 100644 (file)
@@ -87,6 +87,10 @@ namespace zypp
   ResPool::byCapabilityIndex_iterator ResPool::byCapabilityIndexEnd( const std::string & index_r, Dep depType_r ) const
   { return make_filter_iterator( ByCapabilityIndex(), _pimpl->_caphash.end( index_r, depType_r ), _pimpl->_caphash.end( index_r, depType_r ) ); }
 
+  void ResPool::eraseInstalled()
+  { // doesnotwork (const_pointer_cast<pool::PoolTraits::Impl_constPtr>(_pimpl))->eraseInstalled();
+    return; }
+
   /******************************************************************
   **
   **   FUNCTION NAME : operator<<
index 1c3c9ba..58ac003 100644 (file)
@@ -56,6 +56,8 @@ namespace zypp
     bool empty() const;
     /**  */
     size_type size() const;
+    /** erase all installed items (presumably coming from the target) */
+    void eraseInstalled();
 
   public: