From 66e66eab7ed8484602171a291df03b4e387262d7 Mon Sep 17 00:00:00 2001 From: guinux Date: Wed, 28 Jan 2015 16:39:15 +0100 Subject: [PATCH] do not erase empty lines in pacman.conf --- src/alpm_config.vala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/alpm_config.vala b/src/alpm_config.vala index 8032d63..51dd0ee 100644 --- a/src/alpm_config.vala +++ b/src/alpm_config.vala @@ -249,7 +249,10 @@ namespace Alpm { string[] data = {}; // Read lines until end of file (null) is reached while ((line = dis.read_line (null)) != null) { - if (line.length == 0) continue; + if (line.length == 0) { + data += "\n"; + continue; + } if (line.contains ("IgnorePkg")) { if (new_conf.contains ("IgnorePkg")) { string _value = new_conf.get ("IgnorePkg").get_string ();