added Target::setInstallationLogfile to set the RPM log
authorJiri Srain <jsrain@suse.cz>
Tue, 21 Feb 2006 22:35:49 +0000 (22:35 +0000)
committerJiri Srain <jsrain@suse.cz>
Tue, 21 Feb 2006 22:35:49 +0000 (22:35 +0000)
(/var/log/YaST2/y2logRPM)

zypp/Target.cc
zypp/Target.h
zypp/target/TargetImpl.cc
zypp/target/TargetImpl.h

index 71c342e..18ee0eb 100644 (file)
@@ -98,6 +98,9 @@ namespace zypp
                                    PoolItemList & srclist_r ) const
   { _pimpl->getResolvablesToInsDel( pool_r, dellist_r, instlist_r, srclist_r ); }
 
+  bool Target::setInstallationLogfile(const Pathname & path_r)
+  { return _pimpl->setInstallationLogfile(path_r); }
+
   /////////////////////////////////////////////////////////////////
 } // namespace zypp
 ///////////////////////////////////////////////////////////////////
index 0f8e79b..6ba6c30 100644 (file)
@@ -86,6 +86,9 @@ namespace zypp
     void enableStorage(const Pathname &root_r);
 #endif
 
+    /** Set the log file for target */
+    bool setInstallationLogfile(const Pathname & path_r);
+
   public:
     /** Ctor */
     explicit
index 139c91c..f49c732 100644 (file)
@@ -348,6 +348,12 @@ namespace zypp
        return NULL;
     }
 
+    /** Set the log file for target */
+    bool TargetImpl::setInstallationLogfile(const Pathname & path_r)
+    {
+      return rpm::RpmDb::setInstallationLogfile(path_r);
+    }
+
 //-----------------------------------------------------------------------------
 /******************************************************************
 **
index bd90b2b..c49dbec 100644 (file)
@@ -108,6 +108,9 @@ namespace zypp
          return NULL if no resolvable provides this file  */
       ResObject::constPtr whoOwnsFile (const std::string & path_str) const;
 
+      /** Set the log file for target */
+      bool setInstallationLogfile(const Pathname & path_r);
+
     protected:
       /** All resolvables provided by the target. */
       ResStore _store;