fix #95 and other fixes

This commit is contained in:
guinux
2016-02-05 10:50:46 +01:00
parent 2200d318fc
commit 7a71e1859e
3 changed files with 26 additions and 20 deletions

View File

@@ -83,21 +83,27 @@ namespace Alpm {
// free internal data of alpm lists
if (cachedirs != null) {
cachedirs.free_data ();
cachedirs = new Alpm.List<string> ();
}
if (hookdirs != null) {
hookdirs.free_data ();
hookdirs = new Alpm.List<string?> ();
}
if (ignoregroups != null) {
ignoregroups.free_data ();
ignoregroups = new Alpm.List<string> ();
}
if (ignorepkgs != null) {
ignorepkgs.free_data ();
ignorepkgs = new Alpm.List<string> ();
}
if (noextracts != null) {
noextracts.free_data ();
noextracts = new Alpm.List<string> ();
}
if (noupgrades != null) {
noupgrades.free_data ();
noupgrades = new Alpm.List<string> ();
}
usesyslog = 0;
checkspace = 0;
@@ -338,7 +344,7 @@ namespace Alpm {
} else if (line.contains ("CheckSpace")) {
if (new_conf.contains ("CheckSpace")) {
bool val = new_conf.get ("CheckSpace").get_boolean ();
if (val == true) {
if (val) {
data += "CheckSpace\n";
} else {
data += "#CheckSpace\n";