[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:
parent
2aaf2f7ecf
commit
61f04da9a2
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user