Browse Source

stop the download of .files databases

master
Chris Cromer 4 years ago
parent
commit
6f15fc63c4
  1. 2
      po/pamac.pot
  2. 2
      src/pamac-system-daemon/system_daemon.vala
  3. 4
      src/pamac-user-daemon/user_daemon.vala

2
po/pamac.pot

@ -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"

2
src/pamac-system-daemon/system_daemon.vala

@ -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;

4
src/pamac-user-daemon/user_daemon.vala

@ -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;

Loading…
Cancel
Save