]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
suggest transport-packages based on established namescheme
[apt.git] / apt-pkg / acquire-worker.cc
index 9ed7b5b28fb0d5cc3d42b09cdf14089134f5a63a..39cc55bdf1fb997b56a246b841837df7e8d1640e 100644 (file)
@@ -97,8 +97,10 @@ bool pkgAcquire::Worker::Start()
    if (FileExists(Method) == false)
    {
       _error->Error(_("The method driver %s could not be found."),Method.c_str());
-      if (Access == "https")
-        _error->Notice(_("Is the package %s installed?"), "apt-transport-https");
+      std::string const A(Access.cbegin(), std::find(Access.cbegin(), Access.cend(), '+'));
+      std::string pkg;
+      strprintf(pkg, "apt-transport-%s", A.c_str());
+      _error->Notice(_("Is the package %s installed?"), pkg.c_str());
       return false;
    }