*/
#include <string>
+#include <fstream>
#include <pkgmgr-info.h>
#include "log.h"
return 0;
}
-int resolveAllApps()
+void resolveAllApps()
{
int ret = 0;
pkgmgrinfo_appinfo_filter_h handle;
ret = pkgmgrinfo_appinfo_filter_create(&handle);
if (ret != PMINFO_R_OK) {
- return -1;
+ _SERR("Failed to create pkgmgrinfo");
+ return;
}
ret = pkgmgrinfo_appinfo_filter_add_string(handle, PMINFO_APPINFO_PROP_APP_TYPE, "dotnet");
if (ret != PMINFO_R_OK) {
pkgmgrinfo_appinfo_filter_destroy(handle);
- return -1;
+ _SERR("Failed to add pkgmgrinfo filter app type");
+ return;
}
ret = pkgmgrinfo_appinfo_filter_foreach_appinfo(handle, appResolveCb, NULL);
if (ret != PMINFO_R_OK) {
pkgmgrinfo_appinfo_filter_destroy(handle);
- return -1;
+ _SERR("Failed to remove unused multi-targeting files");
+ return;
}
pkgmgrinfo_appinfo_filter_destroy(handle);
-
- return 0;
}