summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIckhee Woo <ickhee.woo@samsung.com>2016-12-27 13:26:46 +0900
committerIckhee Woo <ickhee.woo@samsung.com>2016-12-27 13:26:46 +0900
commit6437d0dd19383ab02389ea4dee7ab3ceed2afcec (patch)
tree87c674e28482d13a6607aaec77e0275d81bb5cef
parent3cef728e854f4b8c6631d7a05954b8affea81853 (diff)
downloadsync-manager-tizen_3.0.m2.tar.gz
sync-manager-tizen_3.0.m2.tar.bz2
sync-manager-tizen_3.0.m2.zip
Change-Id: I4387a386fad7dad0106ebd25dfd7b9b8707a547d Signed-off-by: Ickhee Woo <ickhee.woo@samsung.com>
-rw-r--r--src/sync-service/SyncManager_RepositoryEngine.cpp6
-rw-r--r--src/sync-service/SyncManager_SyncAdapterAggregator.cpp4
2 files changed, 4 insertions, 6 deletions
diff --git a/src/sync-service/SyncManager_RepositoryEngine.cpp b/src/sync-service/SyncManager_RepositoryEngine.cpp
index 42cc282..fe063f4 100644
--- a/src/sync-service/SyncManager_RepositoryEngine.cpp
+++ b/src/sync-service/SyncManager_RepositoryEngine.cpp
@@ -508,10 +508,10 @@ RepositoryEngine::ReadSyncAdapters(void) {
} else {
pAggregator->HandlePackageUninstalled((char*)pPackageId);
}
- WriteSyncAdapters();
}
cur = cur->next;
}
+ WriteSyncAdapters();
pAggregator->dumpSyncAdapters();
}
@@ -670,10 +670,8 @@ RepositoryEngine::WriteSyncAdapters(void) {
for (map<string, string>::iterator iter = pAggregator->__syncAppStatus.begin(); iter != pAggregator->__syncAppStatus.end(); ++iter) {
string appID = iter->first;
string appStatus = iter->second;
- if (!strcmp(syncAdapter.c_str(), appID.c_str())) {
- LOG_LOGD("Set AppStatus : [%s]", appStatus.c_str());
+ if (!strcmp(syncAdapter.c_str(), appID.c_str()))
xmlNewProp(saNode, XML_ATTR_APP_STATUS, (const xmlChar*)(appStatus.c_str()));
- }
}
}
}
diff --git a/src/sync-service/SyncManager_SyncAdapterAggregator.cpp b/src/sync-service/SyncManager_SyncAdapterAggregator.cpp
index 323ee77..d426945 100644
--- a/src/sync-service/SyncManager_SyncAdapterAggregator.cpp
+++ b/src/sync-service/SyncManager_SyncAdapterAggregator.cpp
@@ -56,12 +56,12 @@ SyncAdapterAggregator::SetAppStatus(const char* pServiceAppId, const char* pAppS
for (map<string, string>::iterator iter = __syncAppStatus.begin(); iter != __syncAppStatus.end(); ++iter) {
string appID = iter->first;
if (!strcmp(pServiceAppId, appID.c_str())) {
- LOG_LOGD("Sync status already exist and it will be set as [%s]", pAppStatus);
+ LOG_LOGD("Sync status already exist and it is set as [%s]", pAppStatus);
iter->second = pAppStatus;
return;
}
}
- LOG_LOGD("Sync status will be set as [%s]", pAppStatus);
+ LOG_LOGD("Sync status is set as [%s]", pAppStatus);
__syncAppStatus.insert(pair<string, string> (pServiceAppId, pAppStatus));
}
/* LCOV_EXCL_STOP */