fix client install comunication
This commit is contained in:
@@ -45,8 +45,9 @@ void session_manager::start_dialog(){
|
||||
}
|
||||
|
||||
int session_manager::execute(){
|
||||
char* n_package = new char[256];
|
||||
this->read_data(n_package, 256);
|
||||
char* n_package = new char[250];
|
||||
this->read_data(n_package, 5);
|
||||
this->read_data(n_package, 250);
|
||||
char* use_conf=new char[256];
|
||||
this->read_data(use_conf,2);
|
||||
if(strcmp(use_conf,"y")==0){
|
||||
@@ -62,7 +63,9 @@ int session_manager::execute(){
|
||||
if(result=="err"){
|
||||
return -1;
|
||||
}else{
|
||||
this->data->write_install(n_package, user);
|
||||
if(!this->data->get_package_exists(result)){
|
||||
this->data->write_install(result, user);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
@@ -74,7 +77,7 @@ int session_manager::remove(){
|
||||
if(result=="err"){
|
||||
return -1;
|
||||
}else{
|
||||
this->data->write_remove(n_package);
|
||||
this->data->write_remove(result);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user