do not erase empty lines in pacman.conf

This commit is contained in:
guinux 2015-01-28 16:39:15 +01:00
parent 30e9891567
commit 66e66eab7e

View File

@ -249,7 +249,10 @@ namespace Alpm {
string[] data = {}; string[] data = {};
// Read lines until end of file (null) is reached // Read lines until end of file (null) is reached
while ((line = dis.read_line (null)) != null) { while ((line = dis.read_line (null)) != null) {
if (line.length == 0) continue; if (line.length == 0) {
data += "\n";
continue;
}
if (line.contains ("IgnorePkg")) { if (line.contains ("IgnorePkg")) {
if (new_conf.contains ("IgnorePkg")) { if (new_conf.contains ("IgnorePkg")) {
string _value = new_conf.get ("IgnorePkg").get_string (); string _value = new_conf.get ("IgnorePkg").get_string ();