Skip to content
Snippets Groups Projects
Commit 6d3a9d4a authored by Philip Müller's avatar Philip Müller
Browse files

[mirrors_config] try it differently

parent 83aa5fc8
No related branches found
No related tags found
No related merge requests found
......@@ -19,9 +19,6 @@
namespace Pamac {
class MirrorsConfig {
Transaction transaction;
this.transaction = transaction;
AlpmPackage pkg = transaction.find_installed_satisfier ("pacman-mirrors");
string conf_path;
GLib.List<string> _countries ;
......@@ -31,7 +28,8 @@ namespace Pamac {
public unowned GLib.List<string> countries {
get {
try {
if (pkg != "") {
var file = File.new_for_path ("/usr/bin/pacman-mirrors");
if (file.query_exists ()) {
string countries_str;
int status;
Process.spawn_command_line_sync ("pacman-mirrors -l",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment