<table><tr><td style="">geetamc edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ssn75yaac7s7tgi/" rel="noreferrer">(Show Details)</a><br />geetamc edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-z37m6j7ceze5xue/" rel="noreferrer">(Show Details)</a>
</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/D5777" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;">-KShell::splitArgs is used instead of string<span style="padding: 0 2px; color: #333333; background: rgba(251, 175, 175, .7);">list</span>.split( )<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);"><br />
Reason:<br />
When suCommand is empty, the flow of control does not reach body of  "if(suCommandWithArg.isEmpty() )" <br />
<br />
If QString is empty and it is split using .split() method, the returned QStringList is non empty,<br />
that is not the case with KShell::splitArgs.<br />
<br />
We could use if( suCommand.isEmpty() ) instead but since we ultimately have to return suCommandWithArg,<br />
we must have a check for emptiness of suCommandWithArg, and using KShell::splitArgs eliminates the need for having</span><br />
<span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">to check if( suCommand.isEmpty() ).<br />
<br />
<br />
</span>-Added a default value for suCommand in makebuilderconfig.kcfg so that when new projects are<div style="padding: 8px 0;">...</div></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">-Without the patch when suCommand entry is empty, "" is used as root installation command when project is installed as root (hence installation fails)<br />
-With the patch, kdesu -t is used.</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D5777" rel="noreferrer">https://phabricator.kde.org/D5777</a></div></div><br /><div><strong>To: </strong>geetamc, apol<br /><strong>Cc: </strong>apol, kdevelop-devel<br /></div>