diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-07 13:58:49 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-07 14:04:30 +0100 |
| commit | fd3684cdbc165ceaa635ed19fcbd231f509b0179 (patch) | |
| tree | bc6df7a75bcc227d44a435ffca411ad519008f40 /apt-pkg | |
| parent | e362d060a47ec3c7f487fa8e37eddbc72ac02d13 (diff) | |
Remove ftp, rsh, ssh methods (disabled since 1.8)
These methods have been unsupported and disabled since 1.8, remove
them for the 3.0 cleanup.
Please migrate to http instead. If you need ad-hoc access to a remote
repository, you can run `python3 -m http.server` on that machine and
use SSH port forwarding to run http over ssh.
Diffstat (limited to 'apt-pkg')
| -rw-r--r-- | apt-pkg/acquire-worker.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc index 696a3e0b8..4840ea16a 100644 --- a/apt-pkg/acquire-worker.cc +++ b/apt-pkg/acquire-worker.cc @@ -98,8 +98,6 @@ bool pkgAcquire::Worker::Start() std::string Method; if (_config->Exists(confItem)) Method = _config->FindFile(confItem.c_str()); - else if (Access == "ftp" || Access == "rsh" || Access == "ssh") - return _error->Error(_("The method '%s' is unsupported and disabled by default. Consider switching to http(s). Set Dir::Bin::Methods::%s to \"%s\" to enable it again."), Access.c_str(), Access.c_str(), Access.c_str()); else Method = _config->FindDir(methodsDir) + Access; if (FileExists(Method) == false) |
