Author: mlandres
Date: Wed Jul 9 13:24:02 2008
New Revision: 10525
URL: http://svn.opensuse.org/viewcvs/zypp?rev=10525&view=rev
Log:
- A missing cookie file must not be treated as an error. Simply
rebuild the cache (bnc #405867)
Modified:
trunk/libzypp/package/libzypp.changes
trunk/libzypp/zypp/RepoManager.cc
trunk/libzypp/zypp/RepoStatus.cc
trunk/libzypp/zypp/RepoStatus.h
Modified: trunk/libzypp/package/libzypp.changes
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/package/libzypp.changes?rev=10525&r1=10524&r2=10525&view=diff
==============================================================================
--- trunk/libzypp/package/libzypp.changes (original)
+++ trunk/libzypp/package/libzypp.changes Wed Jul 9 13:24:02 2008
@@ -1,8 +1,10 @@
-------------------------------------------------------------------
-Wed Jul 9 12:13:58 CEST 2008 - ma@suse.de
+Wed Jul 9 13:13:58 CEST 2008 - ma@suse.de
- Provide Package::url() if available in solv file. (bnc #402434)
-- revision 10523
+- A missing cookie file must not be treated as an error. Simply
+ rebuild the cache (bnc #405867)
+- revision 10525
-------------------------------------------------------------------
Mon Jul 7 13:39:09 CEST 2008 - schubi@suse.de
Modified: trunk/libzypp/zypp/RepoManager.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=10525&r1=10524&r2=10525&view=diff
==============================================================================
--- trunk/libzypp/zypp/RepoManager.cc (original)
+++ trunk/libzypp/zypp/RepoManager.cc Wed Jul 9 13:24:02 2008
@@ -253,7 +253,7 @@
RepoManagerOptions options;
RepoSet repos;
-
+
ServiceSet services;
public:
@@ -265,10 +265,10 @@
}
void saveService( const Service& service ) const;
-
+
Pathname generateNonExistingName( const Pathname &dir,
const std::string &basefilename ) const;
-
+
std::string generateFilename( const RepoInfo &info ) const;
std::string generateFilename( const Service &info ) const;
@@ -753,7 +753,6 @@
if ( isCached( info ) )
{
MIL << info.alias() << " is already cached." << endl;
- //data::RecordId id = store.lookupRepository(info.alias());
RepoStatus cache_status = cacheStatus(info);
if ( cache_status.checksum() == raw_metadata_status.checksum() )
@@ -1334,7 +1333,7 @@
info.setBaseUrl(url);
ZYPP_THROW(RepoNotFoundException(info));
}
-
+
void RepoManager::addService( const std::string& name, const Url& url )
{
addService( Service(name,url) );
@@ -1396,7 +1395,7 @@
}
//now remove all repositories added by this service
- getRepositoriesInService( name,
+ getRepositoriesInService( name,
boost::make_function_output_iterator(bind(&RepoManager::removeRepository, this, _1, ProgressData::ReceiverFnc()) ) );
}
@@ -1483,7 +1482,7 @@
//compare old and new repositories (hope not to much, if it change
// then construct set and use set operation on it)
-
+
std::list<RepoInfo> oldRepos;
getRepositoriesInService(service.name(),
insert_iterator