<table><tr><td style="">fvogt created this revision.<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/D5328" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The Plasma/PopupApplet service type for example got deprecated and removed,<br />
but is still used by various parts of Plasma 5.8.<br />
This causes kpackagetool to emit warnings, but it still succeeds. However,<br />
this case is handled incorrectly as any stderr output is assumed to be critical<br />
and the file is not installed. As result is 0, no warning message is printed.</p>

<p>This commit fixes this by ignoring the stderr output and using result to indicate<br />
success. Warning messages are printed if applicable.</p>

<p>Major issue is that kpackagetool5 does not exit with an error if it encounters<br />
an error, so this installs a broken appdata file in some circumstances.</p>

<p>BUG: 378529</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Built Plasma 5.8 with this patch. Works fine now.<br />
As warnings are now printed, it uncovered some little issues as well.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R290 KPackage</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/D5328" rel="noreferrer">https://phabricator.kde.org/D5328</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>KF5PackageMacros.cmake</div></div></div><br /><div><strong>To: </strong>fvogt, mart, apol<br /><strong>Cc: </strong>Frameworks<br /></div>