<table><tr><td style="">apol created this revision.<br />apol added reviewers: Frameworks, mart.<br />Restricted Application added a project: Frameworks.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D4320" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The process to install a kpackage package through knewstuff is:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">download to /tmp</li>
<li class="remarkup-list-item">copy to /tmp with the desired filename</li>
<li class="remarkup-list-item">call the install command against the file</li>
</ul>

<p>This fixes the second step. Sometimes the first download failed or<br />
something, this would make any subsequent attempts fail because<br />
QFile::rename doesn't work if the file is already present.</p>

<p>We were using the QProcess API wrongly</p>

<p>The executable wasn't decoded so it even started, which means not ever<br />
emitting finished</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Now I could download properly the Look and Feel packages from the kcm.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D4320" rel="noreferrer">https://phabricator.kde.org/D4320</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/core/installation.cpp</div></div></div><br /><div><strong>EMAIL PREFERENCES</strong><div><a href="https://phabricator.kde.org/settings/panel/emailpreferences/" rel="noreferrer">https://phabricator.kde.org/settings/panel/emailpreferences/</a></div></div><br /><div><strong>To: </strong>apol, Frameworks, mart<br /></div>