fix curl
This commit is contained in:
parent
888d541197
commit
e736a3e05f
@ -125,7 +125,7 @@ namespace Pamac {
|
|||||||
private ErrorInfos current_error;
|
private ErrorInfos current_error;
|
||||||
public Timer timer;
|
public Timer timer;
|
||||||
public Cancellable cancellable;
|
public Cancellable cancellable;
|
||||||
public Curl.Easy* curl;
|
public Curl.Easy curl;
|
||||||
|
|
||||||
public signal void emit_event (uint primary_event, uint secondary_event, string[] details);
|
public signal void emit_event (uint primary_event, uint secondary_event, string[] details);
|
||||||
public signal void emit_providers (string depend, string[] providers);
|
public signal void emit_providers (string depend, string[] providers);
|
||||||
@ -427,7 +427,6 @@ namespace Pamac {
|
|||||||
while (syncdbs != null) {
|
while (syncdbs != null) {
|
||||||
unowned Alpm.DB db = syncdbs.data;
|
unowned Alpm.DB db = syncdbs.data;
|
||||||
if (cancellable.is_cancelled ()) {
|
if (cancellable.is_cancelled ()) {
|
||||||
delete curl;
|
|
||||||
alpm_handle.dbext = ".db";
|
alpm_handle.dbext = ".db";
|
||||||
refresh_finished (false);
|
refresh_finished (false);
|
||||||
databases_lock_mutex.unlock ();
|
databases_lock_mutex.unlock ();
|
||||||
@ -447,7 +446,6 @@ namespace Pamac {
|
|||||||
}
|
}
|
||||||
syncdbs.next ();
|
syncdbs.next ();
|
||||||
}
|
}
|
||||||
delete curl;
|
|
||||||
alpm_handle.dbext = ".db";
|
alpm_handle.dbext = ".db";
|
||||||
// We should always succeed if at least one DB was upgraded - we may possibly
|
// We should always succeed if at least one DB was upgraded - we may possibly
|
||||||
// fail later with unresolved deps, but that should be rare, and would be expected
|
// fail later with unresolved deps, but that should be rare, and would be expected
|
||||||
@ -2263,12 +2261,6 @@ private void cb_event (Alpm.Event.Data data) {
|
|||||||
details += data.delta_patch_delta.to;
|
details += data.delta_patch_delta.to;
|
||||||
details += data.delta_patch_delta.delta;
|
details += data.delta_patch_delta.delta;
|
||||||
break;
|
break;
|
||||||
case Alpm.Event.Type.RETRIEVE_DONE:
|
|
||||||
delete pamac_daemon.curl;
|
|
||||||
break;
|
|
||||||
case Alpm.Event.Type.RETRIEVE_FAILED:
|
|
||||||
delete pamac_daemon.curl;
|
|
||||||
break;
|
|
||||||
case Alpm.Event.Type.SCRIPTLET_INFO:
|
case Alpm.Event.Type.SCRIPTLET_INFO:
|
||||||
details += data.scriptlet_info_line;
|
details += data.scriptlet_info_line;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user