[mirrors config] adjust pacman-mirrors.conf writing

The previous standard was to insert spaces around x = y. Not having those affects pacman-mirrors in certain functions the app is checking the config file if a change should be written to a specific line.
This commit is contained in:
Philip Müller 2017-05-11 19:15:36 +02:00 committed by GitHub
parent 2aaf2f7ecf
commit 61f04da9a2

View File

@ -116,7 +116,7 @@ namespace Pamac {
unowned Variant variant;
if (line.contains ("Method")) {
if (new_conf.lookup_extended ("Method", null, out variant)) {
data.append ("Method=%s\n".printf (variant.get_string ()));
data.append ("Method = %s\n".printf (variant.get_string ()));
} else {
data.append (line + "\n");
}
@ -125,7 +125,7 @@ namespace Pamac {
if (variant.get_string () == "ALL") {
data.append ("#%s\n".printf (line));
} else {
data.append ("OnlyCountry=%s\n".printf (variant.get_string ()));
data.append ("OnlyCountry = %s\n".printf (variant.get_string ()));
}
} else {
data.append (line + "\n");