File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,12 +79,6 @@ bool Config::load(const QString& configPath) {
7979 m_logFile = logFile;
8080 m_branch = branch;
8181
82- // Load URL settings (with existing defaults)
83- m_queryFileUrlTemplate = settings.value (" NUTS_QUERY_URL" , m_queryFileUrlTemplate).toString ();
84- m_componentBaseUrlTemplate = settings.value (" NUTS_COMPONENT_URL" , m_componentBaseUrlTemplate).toString ();
85- m_osReleaseUrl = settings.value (" NUTS_OS_RELEASE_URL" , m_osReleaseUrl).toString ();
86- m_releaseNotesUrlTemplate = settings.value (" NUTS_RELEASE_NOTES_URL" , m_releaseNotesUrlTemplate).toString ();
87-
8882 return true ;
8983}
9084
Original file line number Diff line number Diff line change @@ -611,10 +611,12 @@ void UpdateManager::cleanup() {
611611}
612612
613613bool UpdateManager::downloadAndVerifyComponent (const QString& componentName, const QString& expectedChecksum) {
614- QString url = Config::instance ().componentBaseUrl () + componentName;
615- if (url.contains (" {branch}" )) {
616- url.replace (" {branch}" , Config::instance ().branch ());
617- }
614+ QString baseUrl = Config::instance ().componentBaseUrl ();
615+ if (!baseUrl.endsWith (' /' ))
616+ baseUrl += ' /' ;
617+ QString url = baseUrl + componentName;
618+ if (url.contains (" {branch}" ))
619+ url.replace (" {branch}" , Config::instance ().branch ());
618620
619621 QString workDir = Config::instance ().workDir ();
620622 QString tempDest = workDir + " /" + componentName + " .download" ;
You can’t perform that action at this time.
0 commit comments