fix(build): cmake
This commit is contained in:
1 parent
1242753962
commit
4a773c63ce
17 files changed
+80
-75
No files matched your search
@@ -89,7 +89,7 @@ public:
|
||||
std::function<void(const std::string&)> progressCallback) override {
|
||||
if (progressCallback) progressCallback("Installation de " + packageName + "...");
|
||||
|
||||
std::string cmd = "sudo pacman -S --noconfirm " + packageName + " 2>&1";
|
||||
std::string cmd = "pkexec pacman -S --noconfirm " + packageName + " 2>&1";
|
||||
std::string output = exec(cmd.c_str());
|
||||
|
||||
if (progressCallback) {
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
std::function<void(const std::string&)> progressCallback) override {
|
||||
if (progressCallback) progressCallback("Suppression de " + packageName + "...");
|
||||
|
||||
std::string cmd = "sudo pacman -R --noconfirm " + packageName + " 2>&1";
|
||||
std::string cmd = "pkexec pacman -R --noconfirm " + packageName + " 2>&1";
|
||||
std::string output = exec(cmd.c_str());
|
||||
|
||||
if (progressCallback) {
|
||||
@@ -125,12 +125,12 @@ public:
|
||||
std::function<void(const std::string&)> progressCallback = nullptr) override {
|
||||
if (packageName.empty()) {
|
||||
if (progressCallback) progressCallback("Mise à jour de tous les paquets...");
|
||||
std::string cmd = "sudo pacman -Syu --noconfirm 2>&1";
|
||||
std::string cmd = "pkexec pacman -Syu --noconfirm 2>&1";
|
||||
exec(cmd.c_str());
|
||||
return true;
|
||||
} else {
|
||||
if (progressCallback) progressCallback("Mise à jour de " + packageName + "...");
|
||||
std::string cmd = "sudo pacman -S --noconfirm " + packageName + " 2>&1";
|
||||
std::string cmd = "pkexec pacman -S --noconfirm " + packageName + " 2>&1";
|
||||
exec(cmd.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user