浏览代码

Remove old updates on startup.

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

Fixes #28
Tobias Hieta 9 年之前
父节点
当前提交
7e4212d1fc
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/system/UpdateManager.cpp

+ 2 - 0
src/system/UpdateManager.cpp

@@ -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));