mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Always null projectOrComponent parameter of ensureCanWrite() removed
`ConnectionOwnerFactory` from ssh module is used instead of deprecated one in remote-run.
This commit is contained in:
@@ -115,7 +115,7 @@ public class PyRemotePackageManagerImpl extends PyPackageManagerImpl {
|
||||
}
|
||||
if (manager != null && remoteSdkCredentials != null) {
|
||||
if (askForSudo) {
|
||||
askForSudo = !manager.ensureCanWrite(null, remoteSdkCredentials, remoteSdkCredentials.getInterpreterPath());
|
||||
askForSudo = !manager.ensureCanWrite(remoteSdkCredentials, remoteSdkCredentials.getInterpreterPath());
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -85,7 +85,7 @@ public abstract class PythonRemoteInterpreterManager {
|
||||
@NotNull Sdk sdk,
|
||||
String path) throws ExecutionException;
|
||||
|
||||
public abstract boolean ensureCanWrite(@Nullable Object projectOrComponent, RemoteSdkCredentials data, String path);
|
||||
public abstract boolean ensureCanWrite(RemoteSdkCredentials data, String path);
|
||||
|
||||
/**
|
||||
* @param sdk current sdk
|
||||
|
||||
Reference in New Issue
Block a user