From e0da9f5ae6d7fea0aba6db555e0aba526ec65f73 Mon Sep 17 00:00:00 2001 From: luca Date: Thu, 18 Dec 2008 09:53:31 +0000 Subject: [PATCH] Patch level :10.0 cd Files correlati : Ricompilazione Demo : [ ] Commento :bottoni in italiano; scarica solo ini e zip;prima scaricava anche i txt delle patch...tempo perso git-svn-id: svn://10.65.10.50/trunk@17941 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- setup/Setup.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup/Setup.cpp b/setup/Setup.cpp index daffdb5c8..40dcb78fe 100755 --- a/setup/Setup.cpp +++ b/setup/Setup.cpp @@ -773,12 +773,13 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri if (strHref.StartsWith(strModule)) { const wxString strPatch = strHref.Mid(2, 4).Lower(); + const wxString strExt = strHref.Right(4).Lower(); // 1) e' un pacco //se e' un pacco devo sapere se e' piu' recente della installazione corrente (potrebbe essere un pacco nuovo.. //..ricompattato) oppure se e' piu' vecchio e non va toccato (e' ad esempio il pacco originale) if (strPatch == "inst") { - if (strHref.EndsWith("ini")) //operazioni sull'ini x sapere versione e patch + if (strExt == ".ini") //operazioni sull'ini x sapere versione e patch { HTTPGet(strTempDir+strHref, strWebPath+strHref); CampoIniFile iniInst(strTempDir+strHref, strModule); @@ -797,9 +798,10 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri } //if(strHref.EndsWith("ini")... } //if(strPatch == "inst")... // 2) e' una patch - else //se invece e' una normale patch... + else //se invece e' una normale patch... else di if(strPatch=="inst".. { - if (atoi(strPatch) > nLocPatch) + //controlla che sia pił avanti del suo livello patch e che sia un file utile (servono solo .ini e .zip) + if (atoi(strPatch) > nLocPatch && (strExt==".ini" || strExt==".zip")) HTTPGet(strTempDir+strHref, strWebPath+strHref); } } //if(strHref.StartsWith(strModule))...