summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <julian.klode@canonical.com>2024-11-07 13:58:49 +0100
committerJulian Andres Klode <julian.klode@canonical.com>2024-11-07 14:04:30 +0100
commitfd3684cdbc165ceaa635ed19fcbd231f509b0179 (patch)
treebc6df7a75bcc227d44a435ffca411ad519008f40 /apt-pkg/acquire-worker.cc
parente362d060a47ec3c7f487fa8e37eddbc72ac02d13 (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/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc2
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)