stop the download of .files databases

This commit is contained in:
Chris Cromer 2017-11-10 22:57:50 -03:00
parent 00f4092ee4
commit 6f15fc63c4
3 changed files with 4 additions and 4 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Pamac\n"
"Report-Msgid-Bugs-To: cromer@cromnix.org\n"
"POT-Creation-Date: 2017-11-10 22:35-0300\n"
"POT-Creation-Date: 2017-11-10 22:57-0300\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -193,7 +193,7 @@ namespace Pamac {
alpm_handle.totaldlcb = (Alpm.TotalDownloadCallBack) cb_totaldownload;
alpm_handle.logcb = (Alpm.LogCallBack) cb_log;
lockfile = GLib.File.new_for_path (alpm_handle.lockfile);
files_handle = alpm_config.get_handle (true);
files_handle = alpm_config.get_handle (false, true);
files_handle.eventcb = (Alpm.EventCallBack) cb_event;
files_handle.progresscb = (Alpm.ProgressCallBack) cb_progress;
files_handle.questioncb = (Alpm.QuestionCallBack) cb_question;

View File

@ -58,7 +58,7 @@ namespace Pamac {
if (alpm_handle == null) {
return;
} else {
files_handle = alpm_config.get_handle (true);
files_handle = alpm_config.get_handle (false, true);
}
}
@ -804,7 +804,7 @@ namespace Pamac {
syncdbs.next ();
}
// refresh file dbs
var tmp_files_handle = alpm_config.get_handle (true, true);
var tmp_files_handle = alpm_config.get_handle (false, true);
syncdbs = tmp_files_handle.syncdbs;
while (syncdbs != null) {
unowned Alpm.DB db = syncdbs.data;