- RepoManager::packagesPath(RepoInfo) added (bnc #394728)
authorJan Kupec <jkupec@suse.cz>
Wed, 28 May 2008 16:37:13 +0000 (16:37 +0000)
committerJan Kupec <jkupec@suse.cz>
Wed, 28 May 2008 16:37:13 +0000 (16:37 +0000)
zypp/RepoManager.cc
zypp/RepoManager.h

index 8a2c6f0..557d452 100644 (file)
@@ -321,6 +321,11 @@ namespace zypp
     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
index d57ac61..d361a20 100644 (file)
@@ -210,6 +210,20 @@ namespace zypp
      */
     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
     *