summaryrefslogtreecommitdiff
path: root/backend/pkgtools.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/pkgtools.cpp')
-rw-r--r--backend/pkgtools.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/backend/pkgtools.cpp b/backend/pkgtools.cpp
index e3f7355..45b159a 100644
--- a/backend/pkgtools.cpp
+++ b/backend/pkgtools.cpp
@@ -9,7 +9,6 @@ module;
#include <curl/curl.h>
#include <sqlite3.h>
#include <cstdint>
-#include <glib-object.h>
#include <string>
#include <regex>
#include <forward_list>
@@ -153,7 +152,7 @@ public:
/ reinterpret_cast<const char*>(sqlite3_column_text(statement, 0));
std::string cmd_line = "/sbin/upgradepkg --install-new " + pkg_filename.native();
- g_spawn_command_line_sync(cmd_line.c_str(), nullptr, nullptr, nullptr, nullptr);
+ system(cmd_line.c_str());
}
sqlite3_finalize(statement);
}