Author: jkupec Date: Wed May 28 18:37:13 2008 New Revision: 10271 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10271&view=rev Log: - RepoManager::packagesPath(RepoInfo) added (bnc #394728) Modified: trunk/libzypp/zypp/RepoManager.cc trunk/libzypp/zypp/RepoManager.h Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=10271&r1=10270&r2=10271&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Wed May 28 18:37:13 2008 @@ -321,6 +321,11 @@ return rawcache_path_for_repoinfo(_pimpl->options, info ); } + Pathname RepoManager::packagesPath( const RepoInfo &info ) const + { + return packagescache_path_for_repoinfo(_pimpl->options, info ); + } + //////////////////////////////////////////////////////////////////////////// RepoStatus RepoManager::metadataStatus( const RepoInfo &info ) const Modified: trunk/libzypp/zypp/RepoManager.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.h?rev=10271&r1=10270&r2=10271&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.h (original) +++ trunk/libzypp/zypp/RepoManager.h Wed May 28 18:37:13 2008 @@ -210,6 +210,20 @@ */ Pathname metadataPath( const RepoInfo &info ) const; + + /** + * \short Path where the rpm packages are downloaded and kept + * + * Given a repoinfo, tells where \ref RepoProvidePackage will download + * and keep the .rpm files. + * + * \param info Repository information + * + * \throws repo::RepoNoAliasException if can't figure an alias + */ + Pathname packagesPath( const RepoInfo &info ) const; + + /** * \short Refresh local raw cache * -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org