]> git.saurik.com Git - apt.git/blobdiff - methods/mirror.cc
Merge remote-tracking branch 'mvo/feature/dpkg-progress-fancy' into debian/sid
[apt.git] / methods / mirror.cc
index d6c5ba955fe3becdd2f555a55e50a5ae7233d776..854366318f731d57b61580edd9b686d65d7ff571 100644 (file)
@@ -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;