This commit is contained in:
guinux 2015-03-18 16:12:35 +01:00
parent dcbb6b07cd
commit 344010da89

View File

@ -1172,6 +1172,8 @@ namespace Pamac {
string? line = null; string? line = null;
Gtk.TextIter end_iter; Gtk.TextIter end_iter;
if ((Alpm.LogLevel) level == Alpm.LogLevel.WARNING) { if ((Alpm.LogLevel) level == Alpm.LogLevel.WARNING) {
// do not show warning when manjaro-system remove db.lck
if (previous_filename != "manjaro-system") {
if (previous_filename != "") { if (previous_filename != "") {
line = dgettext (null, "Warning") + ": " + previous_filename + ": " + msg; line = dgettext (null, "Warning") + ": " + previous_filename + ": " + msg;
} else { } else {
@ -1179,6 +1181,7 @@ namespace Pamac {
} }
transaction_info_dialog.textbuffer.get_end_iter (out end_iter); transaction_info_dialog.textbuffer.get_end_iter (out end_iter);
transaction_info_dialog.textbuffer.insert (ref end_iter, msg, msg.length); transaction_info_dialog.textbuffer.insert (ref end_iter, msg, msg.length);
}
} else if ((Alpm.LogLevel) level == Alpm.LogLevel.ERROR) { } else if ((Alpm.LogLevel) level == Alpm.LogLevel.ERROR) {
if (previous_filename != "") { if (previous_filename != "") {
line = dgettext (null, "Error") + ": " + previous_filename + ": " + msg; line = dgettext (null, "Error") + ": " + previous_filename + ": " + msg;