- RepoInfo::dumpRepoOn() deprecated in favor of dumpAsIniOn()
authorJan Kupec <jkupec@suse.cz>
Thu, 4 Sep 2008 21:28:52 +0000 (21:28 +0000)
committerJan Kupec <jkupec@suse.cz>
Thu, 4 Sep 2008 21:28:52 +0000 (21:28 +0000)
zypp/RepoInfo.cc
zypp/RepoInfo.h
zypp/RepoManager.cc

index a0a01cea03c082db04ca389e3283ebb15d0fb196..e51b0c481d896ca8305b9ce5c016f9466024dd08 100644 (file)
@@ -291,6 +291,9 @@ namespace zypp
   }
 
   std::ostream & RepoInfo::dumpRepoOn( std::ostream & str ) const
+  { return dumpAsIniOn(str); }
+
+  std::ostream & RepoInfo::dumpAsIniOn( std::ostream & str ) const
   {
     RepoInfoBase::dumpAsIniOn(str);
 
index d3626f6db241f36cfb742841b3cd87e36ee26e5e..36d35ce44b3a67b3722c6e063837cd3098891049 100644 (file)
@@ -319,7 +319,9 @@ namespace zypp
     /**
      * Write this RepoInfo object into \a str in a <tr>.repo</tt> file format.
      */
-    virtual std::ostream & dumpRepoOn( std::ostream & str ) const;
+    virtual std::ostream & dumpAsIniOn( std::ostream & str ) const;
+    /** \deprecated use dumpAsIniOn(ostream) instead */
+    ZYPP_DEPRECATED virtual std::ostream & dumpRepoOn( std::ostream & str ) const;
 
     /**
      * Write an XML representation of this RepoInfo object.
index c8c0d6a6fced8b29d8573f3ecc5ac16dbee43be4..56811f5f472af45664faec2df43d90b79c67a6a8 100644 (file)
@@ -1110,7 +1110,7 @@ namespace zypp
       ZYPP_THROW (Exception( "Can't open " + repofile.asString() ) );
     }
 
-    tosave.dumpRepoOn(file);
+    tosave.dumpAsIniOn(file);
     tosave.setFilepath(repofile);
     _pimpl->repos.insert(tosave);
     progress.toMax();
@@ -1159,7 +1159,7 @@ namespace zypp
     {
       MIL << "Saving " << (*it).alias() << endl;
       it->setFilepath(repofile.asString());
-      it->dumpRepoOn(file);
+      it->dumpAsIniOn(file);
       _pimpl->repos.insert(*it);
     }
     MIL << "done" << endl;
@@ -1227,7 +1227,7 @@ namespace zypp
                 ++fit )
           {
             if ( (*fit).alias() != todelete.alias() )
-              (*fit).dumpRepoOn(file);
+              (*fit).dumpAsIniOn(file);
           }
         }
 
@@ -1295,9 +1295,9 @@ namespace zypp
           // if the alias is different, dump the original
           // if it is the same, dump the provided one
           if ( (*fit).alias() != toedit.alias() )
-            (*fit).dumpRepoOn(file);
+            (*fit).dumpAsIniOn(file);
           else
-            newinfo.dumpRepoOn(file);
+            newinfo.dumpAsIniOn(file);
       }
 
       _pimpl->repos.erase(toedit);