Add functions to represent package directories
authorAdam Banasiak <a.banasiak@samsung.com>
Tue, 10 Sep 2013 15:46:22 +0000 (17:46 +0200)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Sun, 15 Sep 2013 09:07:32 +0000 (09:07 +0000)
[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

src/jobs/widget_install/task_manifest_file.cpp
src/misc/widget_location.cpp

index 03fa597..d907b4b 100644 (file)
@@ -626,9 +626,9 @@ void TaskManifestFile::stepGenerateManifest()
 
     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);
index c4701fb..c43d9fb 100644 (file)
@@ -283,4 +283,4 @@ std::string WidgetLocation::getBackupSharedDataDir() const
 std::string WidgetLocation::getBackupSharedTrustedDir() const
 {
     return getBackupSharedDir() + "/trusted";
-}
+}
\ No newline at end of file