projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eebb548
)
Remove Cache-files which don't contain any usable URLs
author
Dominik Heidler
<dheidler@suse.de>
Wed, 1 Dec 2010 16:24:22 +0000
(17:24 +0100)
committer
Dominik Heidler
<dheidler@suse.de>
Wed, 1 Dec 2010 16:24:22 +0000
(17:24 +0100)
zypp/repo/RepoMirrorList.cc
patch
|
blob
|
history
diff --git
a/zypp/repo/RepoMirrorList.cc
b/zypp/repo/RepoMirrorList.cc
index
e212edf
..
965e1d8
100644
(file)
--- 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 )