-------------------------------------------------------------------
+Tue Apr 25 16:34:50 CEST 2006 - visnov@suse.cz
+
+- in source refresh, clean up the cache dir if fails
+- do not require repomd.xml.asc when creating a cache (#163765)
+- rev 3224
+
+-------------------------------------------------------------------
Tue Apr 25 15:17:15 CEST 2006 - dmacvicar@suse.de
- Check if a file exists before providing it, and just handling the
{
// TODO: will this work in chroot?
// TODO: better download somewhere else and then copy over
- storeMetadata( _cache_dir );
+ try{
+ storeMetadata( _cache_dir );
+ }
+ catch( const zypp::Exception & excpt )
+ {
+ ERR << "Unable to refresh the source cache" << endl;
+ if( ! _cache_dir.empty() && _cache_dir != "/" )
+ filesystem::clean_dir( _cache_dir );
+
+ ZYPP_RETHROW( excpt );
+ }
}
void SourceImpl::redirect(unsigned media_nr, const Url & new_url)
MIL << "Checking repomd.xml integrity" << endl;
Pathname asc_local;
try {
+ media::SilentMediaChange report;
+ callback::TempConnect< media::MediaChangeReport > nochange(report);
+
asc_local = provideFile(_path + "/repodata/repomd.xml.asc");
}
catch (const Exception & excpt_r)
MIL << "Checking repomd.xml integrity" << endl;
Pathname asc_local;
try {
+ media::SilentMediaChange report;
+ callback::TempConnect< media::MediaChangeReport > nochange(report);
+
asc_local = provideFile(_path + "/repodata/repomd.xml.asc");
}
catch (Exception & excpt_r)