mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
COPKGManager: don't init if no opkg support available
This avoids creating of any basic configuration files or directories on
non opkg supported firmware releases.
Origin commit data
------------------
Commit: bea8f5e980
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-12-29 (Tue, 29 Dec 2015)
This commit is contained in:
@@ -105,6 +105,14 @@ static const string pkg_types[OM_MAX] =
|
||||
|
||||
COPKGManager::COPKGManager(): opkg_conf('\t')
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
void COPKGManager::init()
|
||||
{
|
||||
if (!hasOpkgSupport())
|
||||
return;
|
||||
|
||||
OM_ERRORS();
|
||||
width = 80;
|
||||
|
||||
|
Reference in New Issue
Block a user