}
std::ostream & RepoInfo::dumpRepoOn( std::ostream & str ) const
+ { return dumpAsIniOn(str); }
+
+ std::ostream & RepoInfo::dumpAsIniOn( std::ostream & str ) const
{
RepoInfoBase::dumpAsIniOn(str);
/**
* 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.
ZYPP_THROW (Exception( "Can't open " + repofile.asString() ) );
}
- tosave.dumpRepoOn(file);
+ tosave.dumpAsIniOn(file);
tosave.setFilepath(repofile);
_pimpl->repos.insert(tosave);
progress.toMax();
{
MIL << "Saving " << (*it).alias() << endl;
it->setFilepath(repofile.asString());
- it->dumpRepoOn(file);
+ it->dumpAsIniOn(file);
_pimpl->repos.insert(*it);
}
MIL << "done" << endl;
++fit )
{
if ( (*fit).alias() != todelete.alias() )
- (*fit).dumpRepoOn(file);
+ (*fit).dumpAsIniOn(file);
}
}
// 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);