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
1 changed files with 4 additions and 1 deletions

View File

@ -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 ();