From 95fcb80fb5ffa3a5136ef3af667c3d3f375629df Mon Sep 17 00:00:00 2001 From: sangsoo lee Date: Fri, 26 Apr 2013 14:23:35 +0900 Subject: [PATCH] modify the version check policy Change-Id: Ia60ffbd3a9b380a8aabbcdccd6574ec3ed391e6e --- src/IstDetailForm.cpp | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) diff --git a/src/IstDetailForm.cpp b/src/IstDetailForm.cpp index 8567555..43c8045 100644 --- a/src/IstDetailForm.cpp +++ b/src/IstDetailForm.cpp @@ -206,23 +206,10 @@ DetailForm::ParsingTPK() } // is the package already installed on local - if (pMgr->IsPackageInstalled(packageId)) - { - TryReturn(pLocalPackageInfo != NULL, E_FAILURE, "Local Package Info get Error"); - - __isInstalled = true; - localVersion = pLocalPackageInfo->GetVersion(); - // Upper Version Check - if (__pTargetPackageInfo->GetVersion().CompareTo(localVersion) < 0){ - __isUpdatable = false; - } - else{ - __isUpdatable = true; - } - } - else{ - __isInstalled = false; - } + // =================================================================================== + // temporal modification about version checking. : allow to install lower version. + __isInstalled = false; + // =================================================================================== __pPrivilegeList = __pTargetPackageInfo->GetPrivilegeListN(); result res = GetLastResult(); -- 2.7.4