From c5d114c88ce93318976d7a622926e5dabec86060 Mon Sep 17 00:00:00 2001 From: Dominik Heidler Date: Wed, 1 Dec 2010 17:24:22 +0100 Subject: [PATCH] Remove Cache-files which don't contain any usable URLs --- zypp/repo/RepoMirrorList.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/zypp/repo/RepoMirrorList.cc b/zypp/repo/RepoMirrorList.cc index e212edf..965e1d8 100644 --- a/zypp/repo/RepoMirrorList.cc +++ b/zypp/repo/RepoMirrorList.cc @@ -68,6 +68,8 @@ namespace zypp } setUrls( my_urls ); + if( urls.empty() ) + zypp::filesystem::unlink(cachefile); } RepoMirrorList::RepoMirrorList( const Url &url ) -- 2.7.4