Remove old updates on startup.

We left the packages from old Updates lingering on the filesystem. This
clears them out.

Fixes #28
This commit is contained in:
Tobias Hieta 2016-02-02 14:00:29 +01:00 committed by Tobias Hieta
parent 5c3a5fba1c
commit 7e4212d1fc

View File

@ -54,6 +54,8 @@ QString UpdateManager::HaveUpdate()
{
// check if this version has been applied
QString readyFile(GetPath("_readyToApply", dir, false));
QString packagesDir(GetPath("packages", dir, false));
QLOG_DEBUG() << "Checking for:" << readyFile;
QDir packageDir(GetPath("packages", dir, false));