#
SET(LIBZYPP_MAJOR "3")
-SET(LIBZYPP_MINOR "24")
+SET(LIBZYPP_MINOR "25")
SET(LIBZYPP_COMPATMINOR "24")
-SET(LIBZYPP_PATCH "8")
+SET(LIBZYPP_PATCH "0")
-------------------------------------------------------------------
+Mon Sep 24 16:10:32 CEST 2007 - dmacvicar@suse.de
+
+- provide a way to retrieve the metadata path. Used for
+ installation, which incorrectly creates a repository in
+ cache without adding it first, so metadata path is not
+ set and therefore it is not possible to setup a media
+ verifier on installation. Part of fix for (#293428)
+- 3.25.0
+
+-------------------------------------------------------------------
Mon Sep 24 15:48:47 CEST 2007 - schubi@suse.de
- If more than one resolvables provide a requirements and have different
////////////////////////////////////////////////////////////////////////////
+ Pathname RepoManager::metadataPath( const RepoInfo &info ) const
+ {
+ return rawcache_path_for_repoinfo(_pimpl->options, info );
+ }
+
+ ////////////////////////////////////////////////////////////////////////////
+
RepoStatus RepoManager::metadataStatus( const RepoInfo &info ) const
{
Pathname rawpath = rawcache_path_for_repoinfo( _pimpl->options, info );
bool checkIfToRefreshMetadata( const RepoInfo &info,
const Url &url,
RawMetadataRefreshPolicy policy = RefreshIfNeeded);
+
+ /**
+ * \short Path where the metadata is downloaded and kept
+ *
+ * Given a repoinfo, tells where \ref RepoManager will download
+ * and keep the raw metadata.
+ *
+ * \param info Repository information
+ *
+ * \throws repo::RepoNoAliasException if can't figure an alias
+ */
+ Pathname metadataPath( const RepoInfo &info ) const;
+
/**
* \short Refresh local raw cache
*
{
RepoInfo info = repo.info();
// set a verifier if the repository has it
+
Pathname mediafile = info.metadataPath() + "/media.1/media";
- if ( ! mediafile.empty() )
+ if ( ! info.metadataPath().empty() )
{
if ( PathInfo(mediafile).isExist() )
{
}
else
{
- WAR << "No media verifier for repo '" << info.alias() << "'" << endl;
+ WAR << "No media verifier for repo '" << info.alias() << "' media/media.1 does not exist in '" << info.metadataPath() << "'" << endl;
}
}
else
{
- MIL << "Unknown metadata path for repo '" << info.alias() << "'. Can't set media verifier."<< endl;
+ WAR << "'" << info.alias() << "' metadata path is empty. Can't set verifier. Probably this repository does not come from RepoManager." << endl;
}
}