Commit 9b8e88df authored by guinux's avatar guinux

fix auto download updates

parent 29c572b4
......@@ -840,8 +840,8 @@ namespace Pamac {
private int download_updates () {
downloading_updates = true;
// use a independant handle
var handle = alpm_config.get_handle ();
// use tmp handle
var handle = alpm_config.get_handle (false, true);
handle.fetchcb = (Alpm.FetchCallBack) cb_fetch;
cancellable.reset ();
int success = handle.trans_init (Alpm.TransFlag.DOWNLOADONLY);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment