From 57e197669ee68e327e3c70bcaa3cac8b301c0884 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 23 Jan 2017 15:16:32 -0500 Subject: [PATCH] Make sure we clean up any extra empty lines in the update check. --- src/server/library/sysadm-update.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/server/library/sysadm-update.cpp b/src/server/library/sysadm-update.cpp index 8646246..f5b7117 100644 --- a/src/server/library/sysadm-update.cpp +++ b/src/server/library/sysadm-update.cpp @@ -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 }