prefer local package over global in pkgmgr_pkginfo_get_user_pkginfo 19/46219/1 accepted/tizen/mobile/20150818.100847 accepted/tizen/tv/20150818.101329 accepted/tizen/wearable/20150818.101636 submit/tizen/20150818.070205
authorJiwoong Im <jiwoong.im@samsung.com>
Tue, 18 Aug 2015 06:40:17 +0000 (15:40 +0900)
committerJiwoong Im <jiwoong.im@samsung.com>
Tue, 18 Aug 2015 06:40:17 +0000 (15:40 +0900)
- result handle should point to local package info if there is local and global
package with the same pkgid

Change-Id: I30ad69db80b789f7a6bc8b94d784066a827fa698
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
src/pkgmgrinfo_pkginfo.c

index f7086be..fe5033c 100644 (file)
@@ -617,7 +617,7 @@ static int _pkginfo_get_pkg(const char *pkgid, const char *locale,
                "package_system, package_type, package_size, installed_time, "
                "installed_storage, storeclient_id, mainapp_id, package_url, "
                "root_path, csc_path, package_nodisplay, package_api_version "
-               "FROM package_info WHERE package=%Q";
+               "FROM package_info WHERE package=%Q order by for_all_users";
        int ret;
        char *query;
        sqlite3_stmt *stmt;