Make sure we clean up any extra empty lines in the update check.

This commit is contained in:
Ken Moore
2017-01-23 15:16:32 -05:00
parent e8e157fb58
commit 57e197669e

View File

@@ -80,6 +80,7 @@ QJsonObject Update::checkUpdates(bool fast) {
//qDebug() << " - Run full check";
//output = General::RunCommand("pc-updatemanager check").split("\n");
output.append( General::RunCommand("pc-updatemanager pkgcheck").split("\n") );
while(output.last().simplified()==""){ output.removeLast(); }
if(!output.last().contains("ERROR:")){ //make sure there was network access available first - otherwise let it try again soon
General::writeTextFile(UP_UPFILE, output); //save this check for later "fast" updates
}