forked from cromer/pamac-classic
option to update files databases or not
This commit is contained in:
@@ -7,13 +7,13 @@ set (GETTEXT_PACKAGE "pamac-classic")
|
||||
set (RELEASE_NAME "pamac-classic")
|
||||
set (CMAKE_C_FLAGS "")
|
||||
set (PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
set (VERSION "6.6.0")
|
||||
set (VERSION "6.6.1")
|
||||
set (TESTSRCDIR "${CMAKE_SOURCE_DIR}")
|
||||
set (DOLLAR "$")
|
||||
|
||||
configure_file (${CMAKE_SOURCE_DIR}/src/pamac-system-daemon/Config.vala.base ${CMAKE_BINARY_DIR}/src/pamac-system-daemon/Config.vala)
|
||||
add_definitions(-DGETTEXT_PACKAGE=\"${GETTEXT_PACKAGE}\")
|
||||
set (VERSION "6.6.0")
|
||||
set (VERSION "6.6.1")
|
||||
add_definitions (${DEPS_CFLAGS})
|
||||
include_directories ( ${CMAKE_BINARY_DIR}/src )
|
||||
link_libraries ( ${DEPS_LIBRARIES} -lpamacclassic )
|
||||
|
@@ -4,7 +4,7 @@ cfg_pamac_system_daemon.set('PKGDATADIR', join_paths(get_option('prefix'),get_op
|
||||
cfg_pamac_system_daemon.set('GETTEXT_PACKAGE', 'pamac-classic')
|
||||
cfg_pamac_system_daemon.set('RELEASE_NAME', 'pamac-classic')
|
||||
cfg_pamac_system_daemon.set('PREFIX', get_option('prefix'))
|
||||
cfg_pamac_system_daemon.set('VERSION', '6.6.0')
|
||||
cfg_pamac_system_daemon.set('VERSION', '6.6.1')
|
||||
cfg_pamac_system_daemon.set('TESTSRCDIR', meson.source_root())
|
||||
|
||||
cfgfile_7 = configure_file(input: 'Config.vala.base',output: 'Config.vala',configuration: cfg_pamac_system_daemon)
|
||||
|
@@ -193,7 +193,12 @@ 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 (false, true);
|
||||
var pamac_config = new Pamac.Config ();
|
||||
if (pamac_config.update_files_db) {
|
||||
files_handle = alpm_config.get_handle (true);
|
||||
} else {
|
||||
files_handle = alpm_config.get_handle (false);
|
||||
}
|
||||
files_handle.eventcb = (Alpm.EventCallBack) cb_event;
|
||||
files_handle.progresscb = (Alpm.ProgressCallBack) cb_progress;
|
||||
files_handle.questioncb = (Alpm.QuestionCallBack) cb_question;
|
||||
|
Reference in New Issue
Block a user