add vala 0.36 support

This commit is contained in:
guinux 2017-01-02 12:52:38 +01:00
parent c44c9ed991
commit c0bb696fdc
2 changed files with 3 additions and 3 deletions

View File

@ -2192,7 +2192,7 @@ private int cb_fetch (string fileurl, string localpath, int force) {
string hostname = url.get_uri ().split("/")[2]; string hostname = url.get_uri ().split("/")[2];
pamac_daemon.emit_log ((uint) Alpm.LogLevel.ERROR, pamac_daemon.emit_log ((uint) Alpm.LogLevel.ERROR,
_("failed retrieving file '%s' from %s : %s\n").printf ( _("failed retrieving file '%s' from %s : %s\n").printf (
url.get_basename (), hostname, error_buffer)); url.get_basename (), hostname, (string) error_buffer));
} }
ret = -1; ret = -1;
break; break;

View File

@ -1105,10 +1105,10 @@ namespace Pamac {
action = dgettext (null, "Downloading required keys") + "..."; action = dgettext (null, "Downloading required keys") + "...";
break; break;
case 39: //Alpm.Event.Type.PACNEW_CREATED case 39: //Alpm.Event.Type.PACNEW_CREATED
detailed_action = dgettext (null, "%s installed as %s.pacnew").printf (details[0]); detailed_action = dgettext (null, "%s installed as %s.pacnew").printf (details[0], details[0]);
break; break;
case 40: //Alpm.Event.Type.PACSAVE_CREATED case 40: //Alpm.Event.Type.PACSAVE_CREATED
detailed_action = dgettext (null, "%s installed as %s.pacsave").printf (details[0]); detailed_action = dgettext (null, "%s installed as %s.pacsave").printf (details[0], details[0]);
break; break;
case 41: //Alpm.Event.Type.HOOK_START case 41: //Alpm.Event.Type.HOOK_START
switch (secondary_event) { switch (secondary_event) {