From 1e8d19aeef2c558fef6c7f891af41f71efd04c45 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 9 Nov 2014 23:02:51 +0100 Subject: [PATCH] COPKGManager: use general options for cache, temp dir and logging cache dir option not required assigned in config file. Note: existing option "cache" in opkg config file must be removed now, otherwise it could hail error log messages and gui package listing could be garbled! Not nice now, but it's one step for an unified configure handling. --- src/gui/opkg_manager.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index c55018c30..3eb911c8c 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -5,7 +5,7 @@ OPKG-Manager Class for Neutrino-GUI Implementation: - Copyright (C) 2012 T. Graf 'dbt' + Copyright (C) 2012-2014 T. Graf 'dbt' www.dbox2-tuning.net Adaptions: @@ -54,6 +54,7 @@ #include /* later this can be changed to just "opkg" */ #define OPKG_CL "opkg-cl" +#define OPKG_CL_CONFIG_OPTIONS " -V2 --tmp-dir=/tmp --cache=/tmp/.opkg " using namespace std; @@ -76,10 +77,10 @@ static const string pkg_types[OM_MAX] = OPKG_CL " list-installed ", OPKG_CL " list-upgradable ", OPKG_CL " update ", - OPKG_CL " upgrade ", - OPKG_CL " remove ", + OPKG_CL OPKG_CL_CONFIG_OPTIONS " upgrade ", + OPKG_CL OPKG_CL_CONFIG_OPTIONS " remove ", OPKG_CL " info ", - OPKG_CL " install " + OPKG_CL OPKG_CL_CONFIG_OPTIONS " install " }; COPKGManager::COPKGManager()