[Issue#] LINUXWRT-358
[Problem] Function wasn't invoked due to objective programming standards
[Cause] N/A
[Solution] Add two new functions in src/misc/widget_location.cpp:
- getUsrSharePackagesDir
- getOptSharePackagesDir
Change-Id: Ia38d2982443274ec300e376f5b8c94457e417b9a
std::ostringstream destFile;
if (m_context.mode.rootPath == InstallMode::RootPath::RO) {
- destFile << "/usr/share/packages" << "/"; //TODO constant with path
+ destFile << WrtDB::GlobalConfig::GetPreloadManifestPath() << "/";
} else {
- destFile << "/opt/share/packages" << "/"; //TODO constant with path
+ destFile << WrtDB::GlobalConfig::GetManifestPath() << "/";
}
destFile << DPL::ToUTF8String(manifest_name);
std::string WidgetLocation::getBackupSharedTrustedDir() const
{
return getBackupSharedDir() + "/trusted";
-}
+}
\ No newline at end of file