* @see pkgmgrinfo_pkginfo_filter_count()
* @see pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
* @code
-static int get_rpm_pkg_count()
+static int get_tpk_pkg_count()
{
int ret = 0;
int count = 0;
ret = pkgmgrinfo_pkginfo_filter_create(&handle);
if (ret != PMINFO_R_OK)
return -1;
- ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "rpm");
+ ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "tpk");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
}
- printf("No of rpm pkgs: %d\n", count);
+ printf("No of tpk pkgs: %d\n", count);
pkgmgrinfo_pkginfo_filter_destroy(handle);
return 0;
}
* @see pkgmgrinfo_pkginfo_filter_count()
* @see pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
* @code
-static int get_rpm_pkg_count()
+static int get_tpk_pkg_count()
{
int ret = 0;
int count = 0;
ret = pkgmgrinfo_pkginfo_filter_create(&handle);
if (ret != PMINFO_R_OK)
return -1;
- ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "rpm");
+ ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "tpk");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
}
- printf("No of rpm pkgs: %d\n", count);
+ printf("No of tpk pkgs: %d\n", count);
pkgmgrinfo_pkginfo_filter_destroy(handle);
return 0;
}
* @see pkgmgrinfo_pkginfo_filter_count()
* @see pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
* @code
-static int get_rpm_pkg_count()
+static int get_tpk_pkg_count()
{
int ret = 0;
int count = 0;
ret = pkgmgrinfo_pkginfo_filter_create(&handle);
if (ret != PMINFO_R_OK)
return -1;
- ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "rpm");
+ ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "tpk");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
}
- printf("No of rpm pkgs: %d\n", count);
+ printf("No of tpk pkgs: %d\n", count);
pkgmgrinfo_pkginfo_filter_destroy(handle);
return 0;
}
return 0;
}
-static int get_rpm_pkg_list()
+static int get_tpk_pkg_list()
{
int ret = 0;
pkgmgrinfo_pkginfo_filter_h handle;
ret = pkgmgrinfo_pkginfo_filter_create(&handle);
if (ret != PMINFO_R_OK)
return -1;
- ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "rpm");
+ ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "tpk");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
* @post pkgmgrinfo_pkginfo_filter_destroy()
* @see pkgmgrinfo_pkginfo_filter_foreach_pkginfo()
* @code
-static int get_rpm_pkg_count()
+static int get_tpk_pkg_count()
{
int ret = 0;
int count = 0;
ret = pkgmgrinfo_pkginfo_filter_create(&handle);
if (ret != PMINFO_R_OK)
return -1;
- ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "rpm");
+ ret = pkgmgrinfo_pkginfo_filter_add_string(handle, PMINFO_PKGINFO_PROP_PACKAGE_TYPE, "tpk");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
pkgmgrinfo_pkginfo_filter_destroy(handle);
return -1;
}
- printf("No of rpm pkgs: %d\n", count);
+ printf("No of tpk pkgs: %d\n", count);
pkgmgrinfo_pkginfo_filter_destroy(handle);
return 0;
}
__save_xml_attribute(reader, "version", &mfx->version, NULL);
__save_xml_attribute(reader, "size", &mfx->package_size, NULL);
__save_xml_attribute(reader, "install-location", &mfx->installlocation, "internal-only");
- __save_xml_attribute(reader, "type", &mfx->type, "rpm");
+ __save_xml_attribute(reader, "type", &mfx->type, "tpk");
__save_xml_attribute(reader, "root_path", &mfx->root_path, NULL);
__save_xml_attribute(reader, "csc_path", &mfx->csc_path, NULL);
__save_xml_attribute(reader, "appsetting", &mfx->appsetting, "false");