HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
retry without partial data after a 416 response
[ntk/apt.git]
/
methods
/
mirror.cc
diff --git
a/methods/mirror.cc
b/methods/mirror.cc
index
d6c5ba9
..
8543663
100644
(file)
--- a/
methods/mirror.cc
+++ b/
methods/mirror.cc
@@
-311,6
+311,9
@@
bool MirrorMethod::InitMirrors()
AllMirrors.push_back(s);
}
+ if (AllMirrors.empty()) {
+ return _error->Error(_("No entry found in mirror file '%s'"), MirrorFile.c_str());
+ }
Mirror = AllMirrors[0];
UsedMirror = Mirror;
return true;